MSD-501/502 Command Guide
73
@GEC / @SEC
Getting control command (Communication command control)
Example
@SEC,2,0,2048,IN1
SELECT,10,
405353572C312C310D0A,0,0,0,
1,0
@SEC,2,0,2048,IN1
SELECT,10,
405353572C312C310D0A,0,0,0,
1,0
Setting control command 2 as follows:
・
Delay: 0 ms.
・
Output port: LOOP BACK
・
Memo: IN1 SELECT
・
Data size: 10 bytes
・
Command data: @SSW,1,1 CR LF (ASCII codes)
・
Timeout: 0 ms.
・
Retry: 0 time
・
Interval: 0 ms.
・
Retry over: Execute
・
Received data: Not displayed
・
Reply command: Not checked
Remarks
-
@GEC / @SEC
Control command (Displaying received data)
Function
Getting
Setting
Format
@GEC, no
@SEC, no, delay, port, memo, length,
command, timeout, retry, interval,
retryover, display, delimiter
Return value
@GEC, no, delay, port, memo, length,
command, timeout, retry, interval,
retryover, display, delimiter
@SEC, no, delay, port, memo, length,
command, timeout, retry, interval,
retryover, display, delimiter
Parameter
No: Control command number
1 to 32
delay: Delay time
0 = 0 second to 999999 = 999.999 seconds
port: Output port
1 to 4095
bit
7
6
5
4
3
2
1
0
port
LAN
5
LAN
4
LAN
3
LAN
2
LAN
1
RS-232C
OUT2B
RS-232C
OUT1B
RS-232C
bit
15
14
13
12
11
10
9
8
port
-
-
-
-
LOOP
BACK
LAN
8
LAN
7
LAN
6
“1” is for the bit of the output port to send a command (Since bit 12-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 “8”
(0000000000001000 in binary).