
SWC-2000 Command Guide
21
@GEC / @SEC
Control command (Communication command)
Function
Getting
Setting
Format
@GEC, no
@SEC, no, delay, port, memo, length,
command, timeout, retry, interval,
retryover, display (, recv_1, recv_2
・・・
)
Return value
@GEC, no, delay, port, memo, length,
command, timeout, retry, interval,
retryover, display (, recv_1, recv_2
・・・
)
@SEC, no, delay, port, memo, length,
command, timeout, retry, interval,
retryover, display (, recv_1, recv_2
・・・
)
Parameter
no: Control command
1 to 32
delay: Delay time
0 to 999999 = 0 sec. to 999.999 sec.
port: Output port
1 to 511
bit
7
6
5
4
3
2
1
0
port
LAN
7
LAN
6
LAN
5
LAN
4
LAN
3
LAN
2
LAN
1
RS-232C
bit
15
14
13
12
11
10
9
8
port
0
0
0
0
0
0
0
LOOP
BACK
“1” is for the bit of the output port to send a command (Since bit 9 to 15 are not used,
they are always “0”). For example, if you want to send a command to RS-232C,
specify “1” (0000000000000001 in binary). If sending a command to LAN 1, specify “2”
(0000000000000010 in binary).
memo:
Up to 14 characters of 20 to 7D except 2C (,) of ASCII code
length: Data size of 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: Time-out duration
0 to 99999 = 0 sec. to 99.999 sec.
retry: The number of retries
0 to 99
interval: Retry interval
0 to 99999 = 0 sec. to 99.999 sec.
retryover: Processing at retry over
0 = Stop processing, 1 = Continue processing
display: Displaying received data
0 = Not displaying received data,
1 = in ASCII codes,
2 = in hexadecimals