
Appendix
A.2 Operation of optical handheld readers, access control readers or serial devices
SIMATIC RF170C
Operating Instructions, 02/2022, J31069-D0176-U001-A6-7618
63
Program blocks
Command / bit
Description
Write
Send command to the device
•
Address “0xFFFF"
A write command with the length "3" and the data "0x23,
0x01, 0xNN" has the effect that the device vibrates "NN" times
or outputs signal tones.
Note that if there is memory overflow the oldest
acknowledgements are lost.
SLG-Status
Fetch the status from the optical handheld reader (sub-command
“13”)
The type of the optical handheld reader is displayed.
Ident blocks
1)
Read
Reading optical data
•
Address "0x0000”
2 bytes for length information is reported in the result, max.
net data 227 bytes; no error message if the length is exceeded
•
Address “0x0002”
No length information in the result; max. net data 229 bytes
•
Address “0xFFFF"
For reading the acknowledgement of a write command
Write
Send command to the device
•
Address “0xFFFF"
A write command with the length "3" and the data "0x23,
0x01, 0xNN" has the effect that the device vibrates "NN" times
or outputs signal tones.
Note that if there is memory overflow the oldest
acknowledgements are lost.
Reset_Univ
Reset the communication between CM and device and empty the
buffer.
The 11th byte ("option_1") of parameter "PARAM" can be
occupied by "0x00" or "0x02". The value "0x04" must be entered
in the first byte, and "0x0A" in the 6th byte.
Reader_Status
Fetch the status from the optical handheld reader (ATTRIBUTE
“0x8D”)
The type of the optical handheld reader is displayed.
1)
When using Rockwell controllers, the commands are identical to those of the Ident blocks.
You will find more information on programming in the corresponding function manual.
Notes on the commands and functions
Init_run
The connection to the optical handheld reader is established with "Init_run" (RESET
command). In the instance DB of the Ident profile or MOBY_DB, you can read out the
firmware version of the CM. A successful connection establishment is indicated by 3 signal
tones of the optical handheld reader. The RESET command does not have reader-specific
parameters and triggers deletion of the buffers on the optical handheld reader.
After the "Init_run" the handheld reader is ready for operation.