Function Blocks 7.6.4 Speed override

In document LG Programmable Logic Controller (Page 114-117)

Related function block

Chapter 7 Function Blocks 7.6.4 Speed override

(Override G3F-POPA / G4F-POPA / G6F-POPA:POSP_OR, G4F-POPB:POSB_ OR)

This is used for user to execute operation with speed value as changed at constant speed. Function Block

type Class Parameter Data type Description

REQ BOOL

Request area of Function Block execution at rising edge

Function Block executed if “0→1”(rising edge) with connected condition to this area as composed during program execution.

BASE USINT Base position No. Setting area of base No. positioning module is equipped on

Setting range : GM1 series(0~31), GM2 series(0~7), GM3/4 series(0~3), GM6 series(0 ) SLOT USINT Slot position No. Setting area of slot No. positioning module is equipped on.

Setting range : 0 ~ 7 AXIS USINT Assignment area of axis to use If “0”, X-axis operates

If “1”, Y-axis operates Input

OVR USINT

Setting area of present operation speed to new value Setting range : 1 ~ 15 (Unit: 10%)

Ex.) If setting value is 12, operation speed value after changed = operation speed value before changed X 120%

DONE BOOL State displaying area of Function Block execution complete If Function Block execution complete without error, “1” is output, and if output parameter ACT is “1”with internal processing of Function Block complete, “0” is output. STAT USINT Error-state displaying area If error occurs during Function Block execution, error No. is displayed.

output

ACT BOOL Positioning module changes output parameter DONE from “1” to “0”with Operation axis displaying area “1”output after processing Function Block command.

Remark

1) Caution for Function Blocks of speed override command used in program (1) Available only at constant speed during operation.(Busy-On state)

7.6.5 Assignment of operation step No.

(Set Move Data Number Change G3F-POPA/G4F-POPA/G6F-POPA:POSP_SMC, G4F-POPB:POSB_SMC)

It is used to change operation step No. to be performed by the next command. Function Block

type Class Parameter Data type Description

REQ BOOL

Request area of Function Block execution at rising edge

Function Block executed if “0→1”(rising edge) with connected condition to this area as composed during program execution.

BASE USINT Base position No. Setting area of base No. positioning module is equipped on

Setting range : GM1 series(0~31), GM2 series(0~7), GM3/4 series(0~3), GM6 series(0 ) SLOT USINT Slot position No. Setting area of slot No. positioning module is equipped on.

Setting range : 0 ~ 7 AXIS USINT Assignment area of axis to use If “0”, X-axis operates

If “1”, Y-axis operates Input

ST_S ET UINT

Setting area of operation step No. to be performed by start command Setting range : 0 ~ 299

DONE BOOL State displaying area of Function Block execution complete If Function Block execution complete without error, “1” is output, and if output parameter ACT is “1”with internal processing of Function Block complete, “0” is output. STAT USINT Error-state displaying area

If error occurs during Function Block execution, error No. is displayed. Output

ACT BOOL Positioning module changes output parameter DONE from “1” to “0”with Operation axis displaying area

REQ BASE SLOT AXIS POSz_OR STAT ACT DONE OVR REQ BASE SLOT AXIS POSz_SMC STAT ACT DONE ST0S ET

Chapter 7 Function Blocks

Remark

1) Caution for function blocks of operation step No. change command used in program (1) Available only at operation stop state.(Busy-Off state)

(2) Operation step No. is changeable by function block of succeeding operation step No. change command to repeated operation in G3F-POPA, G4F-POPA & G4F-POPB, but not changeable in S/W package.

7.6.6 Deceleration stop

(Temporary G3F-POPA / G4F-POPA:POSP_TMP)

(Stop G3F-POPA / G4F-POPA / G6F-POPA :POSP_STP, G4F-POPB:POSB_STP)

It is used to temporarily stop operation of positioning module as decelerated. Function Block

type Class Parameter Data type Description

REQ BOOL

Request area of Function Block execution at rising edge

Function Block executed if “0→1”(rising edge) with connected condition to this area as composed during program execution.

BASE USINT Base position No. Setting area of base No. positioning module is equipped on

Setting range : GM1 series(0~31), GM2 series(0~7), GM3/4 series(0~3), GM6 series(0 ) SLOT USINT Slot position No. Setting area of slot No. positioning module is equipped on.

Setting range : 0 ~ 7 Input

AXIS USINT Assignment area of axis to use If “0”, X-axis operates If “1”, Y-axis operates DONE BOOL

State displaying area of Function Block execution complete

If Function Block execution complete without error, “1” is output, and if output parameter ACT is “1”with internal processing of Function Block complete, “0” is output.

STAT

_X USINT X -axis error information displayed STAT

_Y USINT Y -axis error information displayed Output

ACT BOOL Positioning module changes output parameter DONE from “1” to “0”with Operation axis displaying area “1”output after processing Function Block command.

Remark

1) Caution for Function Blocks of stop command used in program

(1) Availble at operation stop state during acceleration, constant and deceleration.(Busy-Off state) (2) Function Block POSP_STP of G3F-POPA and G4F-POPA can be used only in ROM V1.0.

REQ BASE SLOT AXIS POSz_STP STAT STAT DONE REQ BASE SLOT AXIS POSz_TMP DONE STAT STAT

Chapter 7 Function Blocks

7.7 Function Block for error processing

7.7.1 Internal emergency stop

(Emergency G3F-POPA / G4F-POPA / G6F-POPA:POSP_EMG, G4F-POPB:POSB_EMG)

It is used to promptly stop operation in case of emergency.

Since switched over to output-prohibited and origin point-undecided state if once stopped, cancel output-prohibited and re-decide origin point to re-start.

Function Block

type Class Parameter Data type Description

REQ BOOL

Request area of Function Block execution at rising edge

Function Block executed if “0→1”(rising edge) with connected condition to this area as composed during program execution. BASE USINT Base position No. Setting area of base No. positioning module is equipped on

Setting range : GM1 series(0~31), GM2 series(0~7), GM3/4 series(0~3), GM6 series(0 ) Input

SLOT USINT Slot position No. Setting area of slot No. positioning module is equipped on. Setting range : 0 ~ 7

DONE BOOL State displaying area of Function Block execution complete If Function Block execution complete without error, “1” is output as kept until the next execution starts. If error occurs, “0” is output with operation stopped

Output

STAT USINT Error-state displaying area If error occurs during Function Block execution, error No. is displayed.

7.7.2 Cancellation of output prohibition

(Pulse Out Inhibit, Off G3F-POPA/ G4F-POPA / G6F-POPA:POSP_OFF, G4F-POPB:POSB_ OFF)

Command to cancel pulse-out prohibited state by external emergency stop, upper/lower limit detection, etc.

Function Block

type Class Parameter Data type Description

REQ BOOL

Request area of Function Block execution at rising edge

Function Block executed if “0→1”(rising edge) with connected condition to this area as composed during program execution. BASE USINT Base position No. Setting area of base No. positioning module is equipped on

Setting range : GM1 series(0~31), GM2 series(0~7), GM3/4 series(0~3), GM6 series(0 ) Input

SLOT USINT Slot position No. Setting area of slot No. positioning module is equipped on. Setting range : 0 ~ 7

DONE BOOL State displaying area of Function Block execution complete If Function Block execution complete without error, “1” is output as kept until the next execution starts. If error occurs, “0” is output with operation stopped

Output

STAT USINT Error-state displaying area If error occurs during Function Block execution, error No. is displayed.

REQ BASE SLOT POSz_EMG STAT DONE REQ BASE SLOT POSz_OFF STAT DONE

Chapter 7 Function Blocks

In document LG Programmable Logic Controller (Page 114-117)

Related documents