Technical Documentation
opti-check
v2.8.2-K11
262/332
ipf electronic GmbH
Lüdenscheid, Germany
Element
Size
Meaning
{
/
[
(
/
<
1 byte
These codes are used for synchronization of the transfer.
If you specify the length in 4 bytes, use the code "{" (datagram
with checksum) or "[" (datagram without checksum).
If you specify the length in 8 bytes, use the code "
)
"(datagram
with checksum) or "
>
" (datagram without checksum).
Length
4 or 8 bytes ASCII-
Hex
The length is equivalent to the number of transferred bytes
from the device number (inclusive) to the end of the data, i.e.
without any checksum.
If the datagram exceeds a length of 65,535 bytes and you
require 8 bytes for the length, you must use the start code "(" or
"<".
Device number
2 byte ASCII hex
Each connected device has its own device number in a range
from 1
(„01")-254 („FE"). Number 0 is reserved to address the
bus master (PLC, PC ...).
Device number 255 ("FF") can be used to send commands to
all connected devices simultaneously.
Command
2 byte
Command designation
Parameters
4-12 bytes
Each command has a parameter block at least 4 bytes in
length, some of which remain unused.
data
variable
Optional data section, which may contain result or job data.
Checksum
2 byte ASCII hex
The checksum is produced by linking all characters beginning
with the device number to the end of the data byte for byte with
XOR.
The checksum must only be specified if the start code "{" or " ("
is used, otherwise this entry is omitted.
}
/
]
)
/
>
1 byte
These codes are used as the end codes of the command
blocks.
If you specify the length in 4 bytes, use the code "
}"
(datagram
with checksum) or "
]
" (datagram without checksum).
If you specify the length in 8 bytes, use the code "
)
"(datagram
with checksum) or "
>
" (datagram without checksum).
The following section is used to calculate the checksum:
If you use the RS485 bus protocol (device number: 6), the formats change as follows:
Example (Retrieve the last feature check)
Содержание opti-check
Страница 1: ...Technical Documentation opti check...