SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer
WUME-SCHG1IQRFB-1
39/184
Name
Variable name
Data type
Valid range
Description
All Controller Set
i_bAllSetRequest
Bit
ON, OFF
Starting the FB with this label ON
sends the command to all the
controllers.
Starting the FB with
this label OFF sends the command
to the controller specified by Set
Controller (i_uSetController).
Input Command
i_uCommand
Word
[Unsigned]
H0 to H111(hexadecimal)
For information on available
commands and the command data,
refer to the SC-HG1-C or
SC-HG1-CEF User's Manual.
Command Data
i_dCommandData
Double
word
[Signed]
-32768 to 32767 (decimal)
The valid range differs from
command to command.
■ Output labels
Name
Variable name
Data type
Default
Description
Execution Status
o_bENO
Bit
OFF
Stays ON while the FB is running.
Normal Completion
o_bOK
Bit
OFF
Turns ON upon normal completion of the FB.
Error Completion
o_bErr
Bit
OFF
Turns ON upon error completion of the FB.
Error Code
o_uErrId
Word
[Unsigned]
0
Stores the error code that occurred in the FB.
Module Error Code
o_ud16ModuleErrId[n]
Double
word
[Unsigned]
0
Stores the error code that occurred in the
communication unit.
16 arrays exist and store module error codes.
n=0: Master device
n=1: 1st slave device
to
n=14: 14th slave device
n=15: Communication unit
Command Response o_d15CommandResponse[n]
Double
word
[Signed]
0
Stores the response data after the execution of
the read command.
15 arrays exist and each store write command
responses.
n=0: Master device
n=1: 1st slave device
to
n=13: 13th slave device
n=14: 14th slave device