beautypg.com

Cautions for using stg instruction, 4 instruction details, Chapter 2 instructions – KEYENCE Visual KV Series User Manual

Page 135

background image

2.4 Instruction Details

1

2

3-111

Chapter 2 Instructions

Cautions for using STG instruction

Interlock

When an STG instruction moves to another stage, the previous and next stages turn
ON simultaneously only for one scan. Provide an interlock circuit for the output
which may be dangerous when turned ON in such occasions (e.g., motor's normal/
reverse rotation).

Double coil

A double coil can be used for an STG instruction.

Note: When STG 1000 and 1002 turn ON simultaneously, priority is given to output
relay 0500 of STG 1002, which is entered last.

Retaining output

Use the SET instruction to retain output.

When no JMP is used

When no JMP instruction is used, the STG instruction does not turn OFF even if
0001 turns ON. Be sure to use JMP after STG.

STG operand

When the STG operand relay remains ON, 0500 does not turn OFF even if 0001
turns ON.

Use a differentiation type instruction for the condition of the first STG instruction.

Double coil

0001

0501

0500

1001

JMP

1000

STG

1002

JMP

1001

STG

0002

0501

0500

1100

0501

0500

1001

JMP

1000

STG

1002

JMP

1001

STG

1101

0001

ON

1100
0002

ON

1101

0500

1003

JMP

1002

STG

1102

0003

ON

1102

0000

1001

1002

JMP

1000

STG

JMP

1001

STG

0001

0500

SET

0501

SET

0001

1000

STG

0500

0501

0001

0000

1000

STG

1001

JMP

0500

1000

SET

0001

1100

0000

1000

STG

1100
DIFU

1001

JMP

0500

1000

SET

Interlock

STG

KVNKA Chap 02_4bP.p65

08.3.11, 0:00 PM

111