Chapter 7. Usage of Various Functions
7-110
7.3.5 Flag list and error codes
1) Flag list
Key word Type Function Description S flag map
_P0_STEP_NUM UINT
Current step number Ch0 current step number
%SW817
_P0_ERR_CODE UINT
Error code Ch0 error code
%SW816
_P0_CUR_ADDR UDINT
Current address Ch0 current address
%SD409
_P0_CUR_VEL UDINT
Current velocity Ch0 current velocity
%SD410
_P0_BIT_STAT UDINT
Bit status key word Ch0 bit status key word
%SD411
_P0_RUNNING BOOL
Operating flag Operation status of Ch0 (0: stop, 1:Busy)
Bit 0
_P0_ERR BOOL
Error status Error status of Ch0 (0: normal, 1: error)
Bit 1
_P0_DONE BOOL
End of positioning
Indicates end of operation for Ch0 (0:
operating, 1: End) *1Scan On
Bit 2
_P0_ORG_FIX BOOL
End of Origin return
Indicates end of origin return operation of
Ch0(0:operating, 1: End)
Bit 3
_P0_L_LIMIT BOOL
Low limit detection Indicates stroke low limit detection of Ch0
Bit 4
_P0_H_LIMIT BOOL
High limit detection Indicates stroke high limit detection of Ch0
Bit 5
_P0_E_STOP BOOL
Emergency stop status
Indicates emergency stop status Ch0 (0:
enable, 1: Disable)
Bit 6
_PO_BAN BOOL
Output prohibition
Output prohibition of Ch0 (0: enable, 1:
disable)
Bit 7
_P0_DIR BOOL
Direction
Operation direction of Ch0 (0: Forward, 1:
Backward)
Bit 8
_P0_ACCEL BOOL
Acceleration Accelerating Ch0
Bit 9
_P0_UNIFORM BOOL
Constant speed Constant speed operation of Ch0
Bit 10
_P0_DECEL BOOL
Deceleration Decelerating Ch0
Bit 11
_P0_DWELL BOOL
Dwelling Dwelling Ch0
Bit 12
_P0_POS_RUN BOOL
Position control Position control operation of Ch0
Bit 16
_P0_SPD_RUN BOOL
Speed control Speed control operation of Ch0
Bit 17
_P0_ORG_RUN BOOL
Return to origin Return to origin operation of Ch0
Bit 18
_P0_JOGL_RUN BOOL
JOG low speed JOG low speed operation of Ch0
Bit 19
_P0_JOGH_RUN BOOL
JOG high speed JOG high speed operation of Ch0
Bit 20
_P0_PWM_RUN BOOL
PWM operation PWM output operation of Ch0
Bit 21