![Siemens SIMATIC RF185C Скачать руководство пользователя страница 191](http://html.mh-extra.com/html/siemens/simatic-rf185c/simatic-rf185c_operating-instructions-manual_382133191.webp)
Appendix
A.3 Operation of optical handheld readers, access control readers or serial devices
SIMATIC RF185C, RF186C, RF188C, RF186CI, RF188CI
Operating Instructions, 04/2020, C79000-G8976-C512-03
191
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
Controllers
S7-300 / S7-400 and
STEP 7 V5.5
S7-1200 and
STEP 7 Basic/Professional
S7-1500 and
STEP 7 Basic/Professional
FB 45
Yes
No
No
Ident profile/Ident blocks
as of V2.0
Yes
Yes
Yes
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
Command
Description
FB 45
Init_run
Initialize the device
The parameter value "option_1" can be set to "0" or "2". Further input
is unnecessary.
Read
Read data
•
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
•
Address "0x0002"
No length information in the result; max. net data 233 bytes
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 ex-
ceeded
Ident blocks
1)
Read
Read data
•
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 227 bytes; no error message if the length is exceeded
•
Address “0x0002”
No length information in the result; max. net data 229 bytes
Write
Sending data
The address must be specified as “0xFFFF”. Max. net data 194 bytes
(without length information); no error message if the length is ex-
ceeded