<< Click to Display Table of Contents >>
Generic Tag |
Use PLC or Block Tags to read or write values directly to the memory address of a device's registers, using the parameters described on the next table.
Parameters for reading or writing memory registers
N1/B1 |
Address (ID) of a device |
N2/B2 |
Please check table Commands to manipulate data in memory registers |
N3/B3 |
Not used |
N4/B4 |
Memory of a register |
The next table contains the commands that can be used to manipulate data in memory registers of a device.
Commands to manipulate data in memory registers
N2/B2 |
Command |
Register |
---|---|---|
310 |
Reading with FCode 0x03 and writing with FCode 0x10 |
N4/B4 |
364 |
Reading with FCode 0x03 and writing with FCode 0x64 |
N4/B4 |
Any memory register of a device can be read via FCode 0x03. Some registers can be modified by FCode 0x10 and others, more restricted, by FCode 0x64.
For reading or writing via Block Tags, each one of its Elements represents a sequential memory register, starting from the initial address defined in the B4 parameter, according to the next table.
Usage examples of Block Tags
OBJECTIVE |
Elements |
B1 |
B2 |
B3 |
b4 (initial register) |
RESULT |
---|---|---|---|---|---|---|
Reading with Block Tag (FCode 0x03) |
5 (five) |
Device ID |
310 |
Not used |
10 |
Reading 5 (five) registers, from 10 to 14 |
Writing with Block Tag (FCode 0x10) |
3 (three) |
Device ID |
310 |
Not used |
32 |
Writing 3 (three) registers, from 32 to 34 |
Each memory register can store a 16-bit value (word). Please check device device's user's manual to check the table of available registers for reading and writing values.