SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer
WUME-SCHG1IQRFB-1
50/184
Name
Variable name
Data type
Valid range
Description
Teaching Steps
i_uTeachStep
Word
[Unsigned]
0 to 2
Set the teaching type.
0: 1-point teaching
1: 2-point teaching
2: 3-point teaching
Shift Amount
i_udShiftAmount
Double
word
[Unsigned]
0 to 1999999 (decimal)
Selecting "1-point teaching" from
Teaching Steps (i_uTeachStep)
requires you to set the shift amount.
The setting x 0.0001mm is applied to
the controller as a tolerance value.
Input Signal
i_bInputSignal
Bit
ON, OFF
Turn ON this label when you want to
execute teaching.
An FB error occurs if you turn it ON
with Waiting Signal (o_bSignalWait)
OFF.
■ 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
Waiting Signal
o_bSignalWait
Bit
OFF
ON: Waiting for teaching input
OFF: No teaching accepted