
6F8C0903
163
C.3 Parameter Setting Request (Slave) Function Block
C
C.3 Parameter Setting Request (Slave) Function Block
(1) Definitions of Variables
(*===================================================
DeviceNet FB
Parameter Setting (Slave)
===================================================*)
REQ:
BOOL; (*Execution request*)
CH:
WORD; (*Channel specify*)
UNIT:
WORD; (*Unit specify*)
SLOT:
WORD; (*Slot specify*)
N:
UINT; (*Number of devices)
PARA_SLAVE:
typeP_SLAVE; (*Slave device parameter setting value*)
END_VAR
VAR_OUTPUT
DONE:
BOOL; (*Completion output*)
ERR:
BOOL; (*Error output*)
STATUS:
WORD; (*Status*)
END_VAR
VAR_EXTERNAL
SPINTDAT:
INT; (*INT conversion value*)
SPUINTDAT:
UINT; (*UINT conversion value*)
SPWORDDAT:
WORD; (WORD conversion value)
SW:
ARRAY[0...511] OF INT; (*SW register INT access*)
END_VAR
VAR
INPUTDAT:
ARRAY[0...255] OF WORD (*Parameter input*)
SLOTNO:
WORD; (*R/W slot number*)
TMP_CH:
WORD; (*R/W channel number*)
TMP_UNIT:
WORD; (*R/W unit number*)
TMP_CHUNIT:
WORD; (*R/W channel/slot numbers*)
S3:
BOOL; (*S3 selection*)
S2:
BOOL; (*S2 selection*)
STEP:
ARRAY [0...6] OF BOOL; (*Step*)
DEF1:
BOOL; (*Differential contact*)
DUMMY_W1:
BOOL; (*Dummy*)
ADR_WRT1:
WORD; (*Extension memory address*)
NUM_WRT1:
UINT; (*Number of words to transfer)
TMPDAT1:
UINT; (*Calculated conversion value*)
DUMMY_W2:
BOOL; (*Dummy*)
ADR_WRT2:
WORD; (*Extension memory address*)
DAT_WRT2:
WORD; (*Transfer source variable*)
NUM_WRT2:
UINT; (*Number of words to transfer)
DUMMY_W3:
BOOL; (*Dummy*)
ADR_WRT3:
WORD; (*Extension memory address*)