3. Instruction Set
API
Mnemonic Operands Function
345 PUSTAT Module~ErrCode
state
Type
Bit Devices Word devices Program Steps
(To be used in ISPSoft)
ES2/EX2
SS2
SX2
ES2/EX2 SS2
SX2
ES2/EX2
SS2
SX2
Operands:
Module: Module number Axis: Output axis number ZeroS: Clear present output position to 0
C_Posi: Current output position Execute: Execution flag Pause: Pause flag Error: Error flag
ErrCode: Error code
Explanations:
1. This instruction is available for ES2/EX2 (FW V4.02 or later) and ES2-E (FW V1.48 or later).
For ISPSoft, we recommend using software version 3.16 and above. The timing to set this
instruction is when En changes from OFF to ON. WPLSoft does NOT support this instruction.
2. Module sets the serial number of modules at the right of the PLC. The first one is number 0,
the second one is number 1 and so on. Whatever modules at the right of the PLC must be
numbered. The maximum number is 8. The instruction is exclusive to the PU modules at the
right of the PLC. If the specified module is not a PU module, the error flag Error will change to
ON.
3. Axis sets the output axis number for the specified PU module. The setting values 1~2
represent the axis1~axis2 output of the specified PU module respectively. If the PU module
has no corresponding axis number for output, the error flag Error will change to ON. See the
following combination of axis numbers and corresponding output points of PU modules.
4. ZeroS clears the present output position to 0. If the present axis position is to be cleared to 0,
set ZeroS from OFF to ON when the instruction is started.
5. C_Posi sets the present position of the output axis for the specified PU module. The
parameter value is a latched value and stored in the PU module.