Chapter 7 Function Block
7-4
7.3.2 Operation State Bit Information Read (APM_SRD)
Form of Function Block Description
Input
REQ : Request for execution of function block
BASE : Set the base no. with module
SLOT : Set the slot no. with module
AXIS : Axis to command
(0: axis X. 1: axis Y)
Output
DONE : Maintain 1 after first operating
STAT : Output the error no. in operation
ST1 : State 1
ST2 : State 2
ST3 : State 3
ST4 : State 4
ST5 : State 5
ST6 : State 6
ST7 : State 7
(1) Give “Bit Information of Current operation reading” command to the axis designated as the axis of positioning
module with BASE (Base no. of Positioning module) and SLOT (Slot no. of Positioning module).
(2) The bit information about the state of current operation is saved in parameter set on ST1 ~ ST7.
(3) The contents of output parameters, ST1 ~ ST7 are important information necessarily applied in the program.
Bit Description Bit Description
[0] Operating(0:STOP, 1:BUSY) [4]
Origin fix state(0:Uncompletion,
1:Completion)
[1] Error state [5] -
[2] Positioning completion [6] Stop
ST1
[3] M code On signal(0:Off, 1:On) [7] -
[0] High limit detection [4] In acceleration
[1] Low limit detection [5] In stable speed
[2] Emergent Stop [6] In deceleration
ST2
[3] Direction(0:Forward, 1:Reverse) [7] In dwell
[0] Axis1 in positioning control [4] In circular interpolation operation
[1] Axis1 in speed control [5] In homing operation
[2] In linear interpolation [6] In position synchronous start operation
ST3
[3] - [7] In speed synchronous start operation
[0] In JOG low operation [4] -
[1] In JOG high operation [5] -
[2] In inching operation [6] -
ST4
3
-
7
-