beautypg.com

Programming language – Toshiba T2N User Manual

Page 225

background image

5. Programming Language

212

PROSEC T2N

The following is a description of the elements which compose an SFC
program.

(1)

SFC Initialization
This is the function which starts-up (makes active) the designated
initial step by making the steps in a designated area inactive.
Either of the two methods of an SFC instruction or a ladder
diagram instruction is used. One SFC initialization is required for
1 SFC main program.

SFC Instruction

Operands:

xx = Program number (0-63)
A = Start-up device (except T. and C.)
nnnn = Number of initialized steps (1-2048)

Function:

When the device (with the exception of a timer device or
acounter device) designated by A changes from OFF to
ON, the number of steps following the initial step
(ssss)which are designatedby nnnn (from step number
ssss to ssss + nnnn - 1), are made inactive, and the initial
step (ssss) is made active.

Ladder Diagram Instruction

Input

–[

SFIZ (nnnn) ssss

]–

Output

Operands:

nnnn = Number of initialized steps (1-2048)
ssss = Step number of initial step (0-2047)

Function:

When the input changes from OFF to ON, the initial step

the number of steps designated by nnnn from the step
number designated by ssss (from step number ssss to ssss
+ nnnn - 1), and made inactive, and the initial designated by
ssss is made active.

SFC Composition

Elements

This instruction connects to the
initial step

SFC initialization

Initial step