Page 57
724-746-5500 | blackbox.com
ACX048 API manual
Chapter 7: Specifications
7.2.8 Get CON Devices Connected to CPU Devices
Request:
Telegram
ESC [ N Size CpuCnt CpuId[1] … CpuId[CpuCnt]
General description:
Get CON devices (input) connected to CPU devices (output).
For
CpuCnt = 0
, all CPU devices will be returned.
Table 7-15. Get CON devices (input) connected to CPU devices (output).
Type
Bytes
Description
Hex Coding
ESC
1
Control character
0x1B
[
1
Server identification
0X5B
N
1
Command
0x4E
Size
2
Total length of telegram (7 Bytes + data)
e.g. for
CpuCnt = 3
0x0D 0x00
CpuCnt
2
ID of CPU device
e.g. 3 = 0x03 0x00
CpuId
2
ID of CON device
e. g. 1012 = 0xF4 0x03
Example:
Get CON devices connected to CPU devices.
CpuId = 1012, 1013, 1020)
0x1B 0x5B 0x4E 0x0D 0x00 0x03 0x00 0xF4 0x03 0xF5 0x03 0xFC
0x03
Response:
Telegram
ESC ] N Size CpuCnt <CpuId, ConId>[1] …
<CpuId, ConId>[CpuCnt]
General description: Return CON devices (input) connected to CPU devices
(output). Returns a list of pairs of CpuId, ConId.