6F8C0845
221
D.3 Slave Input (Asynchronous Mode) Function Block
D
(2) Program
/*Slot settings calculation*/
/*Model selection*/
/*Step initializing*/
TMP_CHUNIT
OR_WORD
SLOTNO
ST
LD
SLOT
LD
TMP_CH
OR_WORD
TMP_CHUNIT
ST
LD
TMP_UNIT
LD
IN
UINT
SHL_WORD
TMP_UNIT
ST
N
LD
8
LD
IN
CH
SHL_WORD
TMP_CH
ST
N
LD
12
LD
(
)
LD
(
)
S3
S2
SW[0]
EQ_INT
32
LD
LD
SW[0]
EQ_INT
33
LD
(
)
LD
BS_MODE
BS
EQ_WORD
1
LD
REQ
EN
ENO
(S)
STEP[1]
(R)
STEP[2]
(R)
STEP[3]
(R)
STEP[4]
(R)
STEP[0]
MOVE_WORD
STATUS
〉
SET
16#0
LD
DEF1