Programming language, User's manual – Toshiba T2N User Manual

Page 254

Advertising
background image

User's manual

241

5. Programming Language

CALL N. nn

RET

JUMP N. nn

LBL (nn)

FOR n

NEXT

SUBR (nn)

STOP

EI

DI

IRET

WDT n

STIZ (n) (A)

STIZ (A)

STIZ (A)

SFIZ (n) (A)

Ladder Diagram Instructions (Function Instructions)

Group

FUN

No.

Name

Representation

Summary

Number of

steps

required

Execution

time

required

(

µ

s)

Remarks

Program
control

128

Subroutine call

If the input is ON, the instruction calls the subroutine for
the subroutine number nn.

2~3

92

129

Subroutine return

Indicates the end of the subroutine.

1

73

130

Conditional jump

If the input is ON, jumps directly to the label for the label
number nn.

2~3

67

136

Jump label

Indicates the jump destination for the conditional jump.

2

40

132

FOR-NEXT loop

Executes the section from FOR to NEXT the number of
times specified by n.

2

90

133

NEXT NEXT loop

1

55

137

Subroutine entry

Indicates the entrance to the subroutine (number nn).

2

40

138

STOP

Stops the program

1

140

Enable interrupt

Enables execution of the interrupt program.

1

41

141

Disable interrupt

Disables execution of the interrupt program.

1

61

142

Interrupt program end

Indicates the end of the interrupt program.

1

41

143

Watchdog timer reset

Extends the scan time over detection time

2

68

144

Step sequence initialize

Turns OFF the n devices headed
by device (A), and turns (A) ON
(activation of step sequence).

These comprise
one step
sequence.

3

124

145

Step sequence input

Turns output ON when input is
ON and device (A) is ON.

2

97

146

Step sequence output

When input is ON, the instruction
turns OFF the devices with step
sequence input instructions on the
same route, and turns device (A)
ON.

2

70

241

SFC initialize

When input is changed from OFF to ON, the instruction
resets the n steps from the SFC step (A), and activates
step (A) (activation of SFC).

3

113

Advertising