Functions And Commands - Siemens SIMATIC RF166C Operating Instructions Manual

Hide thumbs Also See for SIMATIC RF166C:
Table of Contents

Advertisement

Configuring the RF1040R/RF1070R reader
No further settings need to be made for the RF1040R/RF1070R reader. In its delivery state,
the reader is set so that it can be operated both via USB as well as the R232 interface.
A.3.4

Functions and commands

Communication can be established using the ident blocks / the ident profile and the function
block FB 45. The "Write" command handles the sending of data and the "Read" command the
receipt of data.
Table A- 3
Compatible controllers/program blocks
Program blocks
FB 45
Ident profile/Ident blocks
as of V2.0
The following table shows the block-specific commands that you can execute with serial field
devices.
Table A- 4
Overview of the commands
Program blocks
FB 45
SIMATIC RF166C
Operating Instructions, 03/2022, C79000-G8976-C578-02
A.3 Operation of optical handheld readers, access control readers or serial devices
S7-300 / S7-400 and
STEP 7 V5.5
Yes
Yes
Command
Description
Init_run
Initialize the device
The parameter value "option_1" can be set to "0" or "2". Further input
is unnecessary.
Read
Read data
Write
Sending data
The address must be specified as "0xFFFF". Max. net data 233 bytes
(without length information); no error message if the length is
exceeded
Controllers
S7-1200 and
STEP 7 Basic/Professional
No
Yes
Address "0x0000"
The length of the valid data is entered in the first 2 bytes of the
result. The user data is entered starting at the third byte. Max. net
data 231 bytes; no error message if the length is exceeded.
When the "On receipt of the end delimiter(s)" parameter is used,
the result is increased by 1 or 2 bytes accordingly.
Address "0x0002"
No length information in the result; max. net data 233 bytes
Appendix
S7-1500 and
STEP 7 Basic/Professional
No
Yes
149

Advertisement

Table of Contents
loading

Table of Contents