Chapter 7. Usage of Various Functions
7-111
Key word Type Function Description S flag map
_P1_STEP_NUM UINT
Current step number Ch1 current step number
%SW825
_P1_ERR_CODE UINT
Error code Ch1 error code
%SW824
_P1_CUR_ADDR UDINT
Current address Ch1 current address
%SD413
_P1_CUR_VEL UDINT
Current velocity Ch1 current velocity
%SD414
_P1_BIT_STAT
UDINT
Bit status key word Ch1 bit status key word
%SD415
_P1_RUNNING BOOL
Operating flag Operation status of Ch1 (0: stop, 1:Busy)
Bit 0
_P1_ERR BOOL
Error status Error status of Ch1 (0: normal, 1: error)
Bit 1
_P1_DONE BOOL
End of positioning
Indicates end of operation for Ch1 (0:
operating, 1: End) *1Scan On
Bit 2
_P1_ORG_FIX BOOL
End of Origin return
Indicates end of origin return operation of
Ch1(0:operating, 1: End)
Bit 3
_P1_L_LIMIT BOOL
Low limit detection Indicates stroke low limit detection of Ch1
Bit 4
_P1_H_LIMIT BOOL
High limit detection Indicates stroke high limit detection of Ch1
Bit 5
_P1_E_STOP BOOL
Emergency stop status
Indicates emergency stop status Ch1(0:
enable, 1: Disable)
Bit 6
_P1_BAN BOOL
Output prohibition
Output prohibition of Ch1(0: enable, 1:
disable)
Bit 7
_P1_DIR BOOL
Direction
Operation direction of Ch1(0: Forward, 1:
Backward)
Bit 8
_P1_ACCEL BOOL
Acceleration Accelerating Ch1
Bit 9
_P1_UNIFORM BOOL
Constant speed Constant speed operation of Ch1
Bit 10
_P1_DECEL BOOL
Deceleration Decelerating Ch1
Bit 11
_P1_DWELL BOOL
Dwelling Dwelling Ch1
Bit 12
_P1_POS_RUN BOOL
Position control Position control operation of Ch1
Bit 16
_P1_SPD_RUN BOOL
Speed control Speed control operation of Ch1
Bit 17
_P1_ORG_RUN BOOL
Return to origin Return to origin operation of Ch1
Bit 18
_P1_JOGL_RUN BOOL
JOG low speed JOG low speed operation of Ch1
Bit 19
_P1_JOGH_RUN BOOL
JOG high speed JOG high speed operation of Ch1
Bit 20
_P1_PWM_RUN BOOL
PWM operation PWM output operation of Ch1
Bit 21