Tips, 4 instruction details, Chapter 2 instructions – KEYENCE Visual KV Series User Manual

Page 139: Stp / ste

Advertising
background image

2.4 Instruction Details

1

2

3-115

Chapter 2 Instructions

Tips

Operation when STP turns OFF
Using a timer in an STP block

When a timer is used in a program defined with an STP instruction, the operation is
as follows:

a) 1000 is reset immediately when the

timer turns ON. The STE instruction is
started with the timer remaining ON.

b) 1000 is not reset immediately when the

timer turns ON but is reset at the next
scan. The timer is reset before the STE
instruction is started.

Usage of STG and STP instructions
STG instruction

Use the STG instruction for process progression with branches.

STP instruction

Use the STP instruction for process progression without branches.

Timer is reset.

0000

T000

1000

SET

1000

T000

1000

RES

0500

#00050

T000

STP

1000

STE

a)

Jump

Timer
remains

ON.

Scan

0000

T000

1000

SET

T000

1000

1000

RES

0500

#00050

T000

STP

1000

STE

b)

Jump

Timer
remains

ON.

Scan

STP / STE

0000

ENDS

ENDS

1002

JMP

1001

JMP

1000

STG

1001

STG

1002

STG

0001

0002

0003

0004

0500

0501

0502

1000

SET

0000

0002

1000

SET

0001

0003

0004

1000

RES

1001

SET

0500

1002

SET

1001

RES

STE

STP

1001

STP

1000

0501

STE

KVNKA Chap 02_4bP.p65

08.3.11, 0:00 PM

115

Advertising