Programming
6.3 Programming via the RS232 interface
SIMATIC RF1000
32
Operating Instructions, 02/2019, C79000-G8976-C432-04
6.3
Programming via the RS232 interface
For connection of the RF1070R reader to a SIMATIC controller, we recommend using the
freeport protocol. The freeport protocol allows you to communicate with the reader directly
on the lowest level. A USB connection is not required for this.
The telegrams are listed in a byte coding in the following subsections; you can apply the byte
coding directly to the user program of the controller.
The communication parameters of the RS232 interface of the reader are set as follows in the
factory:
●
No stop bits
●
No parity
●
Transmission speed: 115.2 kBd
6.3.1
Implementation of the system jobs
The different jobs are described in more detail below. Note that you must wait for the
respective response telegram (reader response time) before you can send new request
telegrams.
The parameter length is entered in "Big Endian" format and always refers to the user data as
of byte 5 excluding the optional checksum. All other data is output in "Little Endian" format.
Checksum calculation ("BCC8")
Note that all bytes of the telegram must be linked with an "XOR" logical operator to calculate
the checksum. The result is shown in the "Optional checksum" field.
6.3.2
System jobs
6.3.2.1
syscmd_reset
Max. reader response time: 100 ms
Table 6- 17 Request telegram
Byte
Value
Description
0
0x0C
Without checksum
0x1C
With checksum
1
0x00
DevCode
2
0x03
CmdCode
3 ... 4
0x00
Parameter length (0 bytes)
5
0xXX
Optional checksum "BCC8" (when the value "0x1C" is set in byte 0)