5 External Input/Output Function
37
No. 99MBC109B
5.3.2 Communication Commands
This section explains the command format from a PC or PLC, output from the
Counter, and operation details.
Command format Corresponding output Operation details Notes
GA**CRLF G#**, +01234.567CRLF Outputs "Display value" See *1
CN**CRLF CH**CRLF
Switches the display to
"Current value"
See *2
CX**CRLF CH**CRLF
Switches the display to
"Maximum value"
See *2
CM**CRLF CH**CRLF
Switches the display to
"Minimum value"
See *2
CW**CRLF CH**CRLF Switches the display to
"TIR"
See *2
CR**CRLF CH**CRLF Zero setting
CL**CRLF CH**CRLF Clears the peak value
CP**,+01234567CRLF CH**CRLF Inputs the Preset value See *3
CD**,+01234567CRLF CH**CRLF Inputs tolerance value S1 See *3
CE**,+01234567CRLF CH**CRLF Inputs tolerance value S2 See *3
CF**,+01234567CRLF CH**CRLF Inputs tolerance value S3 See *3
CG**,+01234567CRLF CH**CRLF Inputs tolerance value S4 See *3
CS**CRLF CH**CRLF Clear error
CK**CRLF CH**,%CRLF Checks the HOLD status See *4, *5
*1 "**" denotes an RS-232C Linear Gage channel number (01 to 99) ("00" means all channels). Channels
01 to 04 correspond to CEL1 to CEL4, respectively.
A "#" after "G" in the output data denotes the type of data (N: Current value, X: Maximum value, M:
Minimum value, W: TIR).
*2 If Peak mode is switched using an RS command, data will not be backed up in internal memory.
*3 For the Preset value and tolerance value, enter a value consisting of a +/- sign and an 8-digit of numeric
value without a decimal point.
Perform the tolerance setting in the order CD command → CG command for 3-step tolerance, and in
the order CD command → CE command → CF command → CG command for 5-step tolerance.
An error will be output in the following cases. In this case, redo the settings from the CD command.
・
If the order of the tolerance values is incorrect
・
If the step count and sent data are different
・
If incorrect data is sent
*4 The response output from the CK command ("%") shows the HOLD status.
%=0: Normal status/1: HOLD status
*5 If parameter number 28 is 1 (channel synchronization), all Counters that are connected via RS LINK
when the CK command is sent will switch to the HOLD state.
The HOLD state will be canceled by reading out data with the GA command.
The CK command is valid only with channel number 1 (CK01CRLF).