Specifications

Table Of Contents
10 - 30
10.5.8 Reading actual current value
The monitor data includes D0 to D159 stored in the actual current value storage register
(shown below). Consequently, a read program does not need to be created.
Axis 1
Axis 2
Axis 3
Axis 4
Axis 5
Axis 6
Axis 7
Axis 8
D2 D22 D42 D62 D82 D102 D122 D142
Actual current
value
D3 D23 D43 D63 D83 D103 D123 D143
Example SFC program and sequence program used to output the actual current
value of axis 1 and axis 2 to the digital display unit (controlled by Q-PLC
CPU) in [mm] units
(1) SFC program
SFC program No. 70
Reading of actual current value
The current value (D2) [0.1µm]
of axis 1 is converted into a mm
unit value to stabilize the 1st
digit display.
The current value [mm] is stored
in D6004 set by automatic refresh.
The current value (D22) [0.1µm]
of axis 2 is converted into a mm
unit value to stabilize the 1st
digit display.
The current value [mm] is stored
in D6006 set by automatic refresh.
G700 G702
[Transition]
D4016L=D2L/K10000
D4014L=D4016L%K10
(K0==D4014L)*(K0<=D4016L)
D4020L=D22L/K10000
D4018L=D4020L%K10
(K0==D4018L)*(K0<=D4020L)
F700 F701
[Operation control
step]
D6004L=D4016L D6006L=D4020L
D3, D2 : Axis 1 actual current value storage register
D23, D22 : Axis 2 actual current value storage register
D6004, D6005 : Axis 1 actual current value (Automatic refresh setting device)
D6006, D6007 : Axis 2 actual current value (Automatic refresh setting device)
REFERENCE
Since the actual current value is stored as a 32-bit data in [0.1µm] unit, it is divided
by 10,000 to convert into a [mm] unit.