B
Communication Command Guide
B-15
Communication example
Transmission
Response
@?P1.1 c/r l/f
Reads "Position" of point data 1.
P1.1=30000 c/r l/f
Receives the data.
OK.1 c/r l/f
Normal end
@?S2.1 c/r l/f
Reads "Speed" of point data 2.
S2.1=100 c/r l/f
Receives the data.
OK.1
Normal end
Parameter data reading (?K)
Format
@?K<parameter number>[.<node number>] c/r l/f
Meaning
Reads a specified parameter.
Function
Reads the setting value of a specified parameter.
n
NOTE
Some parameter data may include the decimal point due to the specifications. However, when handling such
data using the communication command, all of data are handled as integer values. For example, when
K1 ((-) soft limit) is "20 [mm]", the communication command at the TS-S, TS-S2, TS-SH, and TS-X would be "2000"
(×10
-2
), and the communication command at the TS-P would be "20000" (×10
-3
). In both cases, no decimal point is
used.
Setting
<Parameter number> : 1 to 138
<Node number>
: 1 to 16 (This setting can be omitted when the same command is sent to all the controllers
connected with the host device, as by daisy chain connection.)
TIP
For parameter number details, see Chapter 3, section 4, "Parameter data" of the Controller Guide.
Communication example
Transmission
Response
@?K10.1 c/r l/f
Reads parameter data K10 (JOG speed).
K10.1=50 c/r l/f
Receives the data.
OK.1 c/r l/f
Normal end