Page 49
724-746-5500 | blackbox.com
ACX048 API manual
Chapter 7: Specifications
Table 7-4. Get system time.
Type
Bytes
Description
Hex Coding
ESC
1
Control character
0x1B
(
1
Server identification
0x28
S
1
Command
0x53
Size
2
Total length of telegram (12 bytes)
0x0C 0x00
Seconds
1
Seconds (0–59)
0x00 - 0x59
Minutes
1
Minutes (0–59)
0x00 - 0x59
Hours
1
Hours (0–23)
0x00 - 0x23
Day
1
Day (1–7, Monday = 1)
0x01 - 0x07
Date
1
Date (1–31)
0x01 - 0x31
Month
1
Month (1–12)
0x01 - 0x12
Year
1
Year (+2000)
e. g. 2012 = 0x12
Example: Return system time: Saturday 15:27:48 28.01.2012
0x1B 0x29 0x53 0x0C 0x00 0x48 0x27 0x15 0x06 0x28 0x01 0x12
7.2 Switch Commands
7.2.1 Switch Off All Ports
Request:
Telegram
ESC [ A
General description: Switch off all ports
Table 7-5. Switch off all ports.
Type
Bytes
Description
Hex Coding
ESC
1
Control character
0x1B
(
1
Server identification
0x5B
S
1
Command
0x41
Example: Switch off all ports
0x1B 0x5B 0x41
Response:
<ACK> [<ECHO>] or <NAK>.
[ ] = Optional elements