EasyManua.ls Logo

Siemens SIMATIC MV500 - Page 166

Siemens SIMATIC MV500
294 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Process interfacing via an automation system (PLC, PC)
9.3 Control with Ident profile
SIMATIC MV500
166 Operating Instructions, 03/2021, C79000-G8976-C494-05
Table 9- 26 Memory area of the receive data (TXREF or RXREF)
Address
Value
Meaning
0x0000
0x00 ... 0xFF
Length of the entire result string (more significant
byte)
0x0001
0x00 ... 0xFF
Length of the result string (less significant byte)
0x0002
--
1st character of the result string
0x0003
--
2nd character of the result string
--
(n + 1)
--
(n–1)th character of the result string
(n + 2)
--
nth character of the result string
Command: Read result string
Using the same mechanism as "Read trigger + result string", it is possible to read out the
decoded text of a code via CM.
Note that if "CM" was not selected as the trigger source in the WBM, the "PHYSICAL READ"
command will not trigger, it only returns the result of the decoding. If a result is already
available, this is returned. If there is not yet a result string available, the system waits until a
result string is available.
After processing of the command, the result string is available in the memory area of the
receive data specified in the command ("RXREF").
You can abort the execution of the command by setting the "INIT" bit.
Command: Read program number
When a "PHYSICAL READ" command is received, the MV command "Read program number"
("PHYSICAL WRITE" command) must have been issued immediately beforehand in order for
the current program number to be returned. You can find more information on this subject in
the section ""PHYSICAL WRITE" commands / MV command interface (Page 158)".
The "PHYSICAL READ" command must specify the start address "0x0000" and a length "0x01"
("CMD_STRUCT.ADDR_TAG = 0", "CMD_STRUCT.LEN_DATA = 1").
The byte read at address "0x0000" contains the number of the program currently selected
and is stored in the memory area of the receive data after the command is processed.
Table 9- 27 CMD_STRUCT
Parameter
Value
CMD
0x70
OFFSETBUFFER
0x00
EPCID_UID
0x00
LEN_DATA
0x01
ADDR_TAG
0x00

Table of Contents

Other manuals for Siemens SIMATIC MV500