IDK MSD-54 Series Command Guide User Manual
Page 91

MSD-54 Series Users Guide (Command Guide)
91
@GEC
Get control command (Control communication command)
Command
format
@GEC, no
Return value
format
@GEC, no, delay, port, memo, length, command, timeout, retry, interval, retryover,
display (
, recv_1, recv_2・・・)
Parameter
no
: Command number
1 to 32
delay
:
0 to 999999
port
: Output port
1 to 2047
bit10
bit9 bit8 bit7 bit6 bit5 bit4 bit3 bit2 bit1
bit0
Out
put
port
LOOP
BACK
LAN
8
LAN
7
LAN
6
LAN
5
LAN
4
LAN
3
LAN
2
LAN
1
RS-232
C CH2
RS-232
C CH1
The bit corresponding to the output port to which the command is sent is “1” (Since
bit 15-11 are not used, they are always “0”). For example, if you send a command
to RS-232C CH1, the value is “1”(0000000000000001 in binary). If sending a
command to LAN 1 and LAN 2, the value is “12”(0000000000001100 in binary).
memo
:
Up to 14 characters of 20 to 7D except 2C (,). “2 ASCII codes”
length : Data size of the send command (the number of bytes)
0 to 30
command : Send command data
Specify
length
× 2 digits with 0 to 9, A to F, a to f = 4 bit per digit (in
hexadecimal)
timeout :
0 to 99999
retry
:
0 to 99
interval
: Interval between retries
0 to 99999
retryover
: Processing at retry timeout
0 = Stop processing, 1 = Continue processing
display
: Displaying received data
0 = Control communication command
recv_1-32
: Replied command check
1 to 32 = Reply command number to be checked is replied (separated with
commas).
Example Send
Receive
@GEC,1
@GEC,1,10,3,PO
WER,
7,5057204F4E0D0
A,
1000,2,500,0,0,1,2
Get the control command 1.
・
Delay: 10 ms
・
Output port: RS-232C CH1 & RS-232C CH2
・
Memo: POWER
・
Data size: 7 bytes
・
Command data : PW ONCR LF (ASCII codes)
・
TimeOUT1000 ms
・
Retry: 2 times
・
Interval: 500 ms
・
Retry over: Stop