Programming via XML interface
10.3 XML commands
SIMATIC RF650R/RF680R/RF685R
Configuration Manual, 03/2018, C79000-G8976-C386-06
193
All communication with a reader must start with the "hostGreetings" command. This is how
the reader recognizes the user application connected to the XML interface. If commands are
sent without being preceded by the "hostGreetings" frame, the reader replies with the error
message "ERROR_INVALID_READER_STATUS".
The XML interface can support several "RFReader.XmlAPI" versions. In the "hostGreetings"
command, specify the API version of the XML interface you want to work with. The reply
frame of the reader then contains the version that the XML interface uses. The
RF650R/RF680R/RF685R readers use version V2.0.
Note that the reply frame of the reader can take up to 20 seconds.
<readerType> value readerType </readerType> //opt
<version> value_version </version>
<version> value_version </version> // opt
// opt → Optional: Line can be omitted.
<resultCode> 0 </resultCode>
<version> value_version </version>
<configID> value_configID </configID>
The error codes for negative replies ("resultCode" ≠0) are described in the section "Negative
XML replies (Page 263)".