FG_D6_PROFIBUS_EN_01 / 2020-06-17
Reading of the parameters
The reading of the parameters is carried out by data exchange in the corresponding area depending
on the configuration mode of the slave. Each parameter is identified by one identifier. See identifiers
tables.
This table is an example based on the reading of two parameters:
—
Test time (identifier number 3)
—
Stabilization time (identifier number 2)
—
Select the program on which parameters has to be
read
—
Write in the parameter area at the address 20(h),
the number of parameters followed by their
identifiers:
On network:
0002(h) 0003(h) 0002(h)
0002(h) = two parameters
0003(h) = test time identifier
0002(h) = stabilization time identifier
—
Activate the “Read parameters” command:
Write at the address 00(h), the value 0020(h)
Byte 0 = 20(h) (Bit 5 = 1)
Byte 1 = 00(h)
Acknowledgement
Command echo:
—
Byte 0 = 20(h) (Bit 5 = 1)
—
Byte 1 = 00(h)
Command error code:
—
Byte 2 = FF(h)
—
Byte 3 = FF(h)
(if command error code = FFFF(h), command is in
progress)
Running “Read parameters” command
Command finished
Command echo:
—
Byte 0 = 20(h) (Bit 5 = 1)
—
Byte 1 = 00(h)
Command error code if the command is correctly
carried out:
—
Byte 2 = 00(h)
—
Byte 3 = 00(h)
OR if an error occurred during the command:
—
Byte 2 = 20(h) (Bit 5 = 1)
—
Byte 3 = 00(h)
—
Wait the end of the command:
command echo = 0020(h)
command error code ≠ FFFF(h) (end of command)
—
Deactivate the “Read parameters” command:
Write at the address 00(h) the value 0000(h)
Byte 0 = 00(h) (Bit 5 = 0)
Byte 1 = 00(h)