22 POSITIONING INSTRUCTIONS
22.5 Initializing the Module
1779
22
■Applicable devices
*1 FX and FY cannot be used.
*2 T, ST, C, and FD cannot be used.
*3 FD cannot be used.
■Control data
• These instructions reset the module parameters and module extension parameters in the buffer memory of the positioning
module, and the settings in the module extension parameter file to the factory default settings (initial values). For details,
refer to the following.
MELSEC iQ-R Positioning Module User's Manual (Application)
• The setting data initialized include the parameters, positioning data (No. 1 to 600), and block start data (No. 7000 to 7004).
• The execution of the PINIT instruction and whether it has been completed normally or with an error can be checked with the
completion device (d) or completion status indication device (d)+1.
• The following figure shows the operation at completion of the PINIT instruction.
Operand Bit Word Double word Indirect
specification
Constant Others
(U)
X, Y, M, L,
SM, F, B, SB,
FX, FY
J\ T, ST, C, D,
W, SD, SW,
FD, R, ZR,
RD
U\G, J\,
U3E\(H)G
Z LT, LST,
LC
LZ K, H E $
(U) GP.PINIT
ZP.PINIT
(s)
*3
(d)
*1
*2
Operand: (s)
Device Item Description Setting range Set by
+0 System area
+1 Completion status The instruction completion status is stored.
• 0: Completed successfully
• Other than 0: Completed with an error (error code)
System
• Completion device (d)
This device turns on during the END processing of the scan where the PINIT instruction completed, and turns off during the next END processing.
• Completion status indication device (d)+1
This device turns on or off depending on the completion status of the PINIT instruction.
When completed normally: Unchanged from off.
When completed with an error: Turns on during the END processing of the scan where the PINIT instruction completed, and turns off during the next END
processing (the same on/off operation as the completion device is performed).
END0END0END0END0END0
OFF
OFF
OFF
OFF
ON
ON
Sequence scan
PINIT instruction
Completion device (d)
Completion status
indication device (d)+1
Completed with an error
Execution of
the instruction
Completed
successfully
1 scan
Completion of the instruction