129
Part 2 Programs
OTPS (Output current position data)
Command, declaration
Extension condition
(LD, A, O, AB, OB)
Input condition
(I/O, flag)
Command,
declaration
Operand 1
Operand 2
Output
(Output, flag)
Optional Optional
OTPS
Output port
number
Axis
number
CC
[Function]
Output current position data to an output port.
The current position data corresponding to the axis number specified in operand 2 is output
to 32 bits of ports starting from the output port specified in operand 1.
If the command is executed with 0 specified in operand 1, the command will become invalid
and refreshing of current position data at the specified output will stop.
When this command is executed, current position data will be refreshed continuously at the
specified output port until the program in which this command was input is stopped or
otherwise the command becomes invalid.
32-bit binary data (extended by sign) is output. The minimum unit is 0.001 mm.
(Note 1)
Only output ports of No. 300 or higher port numbers (multiples of 8) can be specified in
operand 1.
(Note 2)
Only network output ports are supported.
(Note 3)
Even if this command is executed, output data remains indeterminable if home return is not
yet completed.
(Note 4)
The output data format can be changed using the FMIO command (refer to the section on
“FMIO command”). Note, however, that data is output in the FMIO-specified format when
this command is called.
[Example 1]
When OTPS 300 1 is executed:
If the current position is -0.012 mm, it is expressed as -12 (decimal) or FFFFFFF4
(binary) in units of 0.001 mm. Accordingly, FFFFFFF4 is output to output port No.
300 onward.
[Example 2]
If the current position is 125.305 mm, it is expressed as 125305 (decimal) or
0001E979 (binary) in units of 0.001 mm. Accordingly, 0001E979 is output to output
port No. 300 onward.
The statuses of output ports are shown below.
Содержание ssel
Страница 1: ...Operation Manual Eighth Edition SSEL Controller ...
Страница 26: ......
Страница 50: ...25 Part 1 Installation 3 Specification with system memory backup battery optional ...
Страница 385: ...359 ...
Страница 495: ......
Страница 496: ......