Command Structure - Siemens SIMATIC Ident Function Manual

Hide thumbs Also See for SIMATIC Ident:
Table of Contents

Advertisement

Configuring the instructions
4.6 Programming the Ident profile
4.6.4.2

Command structure

Before you can start a command with "EXECUTE" or "INIT", you need to define the
command. To allow simple definition of a command, the command buffer "CMDREF" was
created using the "IID_CMD_STRUCT" data type. In the command buffer, you have 10
areas available in which commands can be programmed. The "CMDSEL" parameter
specifies which command [0...9] is started with "EXECUTE".
Remember that the first element in the buffer is always reserved for "INIT". This means
that if "INIT" is set, "CMDSEL" must be set to "0" and element "0" in the CMD buffer
must be filled with the relevant settings.
The following table contains the command structure of the parameters. Not every
command uses all parameters.
Table 4- 51 Command structure of the parameters
Parameter
CMD
ATTRIBUTES
OFFSETBUFFER
EPCID_UID
LEN_DATA
ADR_TAG
CONFIG
CHAINED
74
Data type
Default
value
SINT
0
SINT
0
INT
0
SINT[62]
0
DINT
0
DINT
0
SINT
0
BOOL
FALSE
Description
Command code (compare the table in the section
"Commands of the Ident profile (Page 72)".)
Sub command name for several commands (e.g.
"READER-STATUS", "INVENTORY", etc.)
Relative offset within the received data buffer. The
parameter specifies the address within the memory
area at which the first byte of the received data must
be stored or the first byte of the data to be sent is
expected.
All subsequent bytes must be stored in ascending
addresses.
Buffer for up to 62 bytes EPC-ID, 8 bytes UID or 4
bytes handle ID.
2 - 62-byte EPC-ID is entered at the start of the
buffer (length is set by "LEN_ID")
8-byte UID is entered at the start of the buffer
("LEN_ID = 8")
Amount of data to be read/written in bytes
Physical start address on the transponder
0x01 = reset, no configuration data
0x02 = no reset, configuration data to be sent
0x03 = reset, configuration data to be sent
0x80 = no reset, only individual parameters
0x00 = not chained
0x01 = chained
All chained commands must have this bit set except
the last command. The commands are worked through
in the order in which they are located in the CMD
structure.
Ident profile, Add-on instruction for Rockwell systems
Function Manual, 07/2020, C79000-G8976-C410-04

Advertisement

Table of Contents
loading

Table of Contents