Appendix B. Slave configuration example
38
akytec GmbH - Vahrenwalder Str. 269 A - 30179 Hannover - Germany Tel.: +49 (0) 511 16 59 672–0 - www.akytec.de
Appendix B. Slave configuration example
MSD200 is set to Slave Ext mode and should record the values, send by PR200 as a Master.
To establish connection, Master and Slave must have the same:
– Protocol;
– Baud rate;
– Stop bits;
– Parity;
– Target address of PR200 and Slave address of MSD200.
For successful data exchange, it is necessary to reconcile the data types and the order of registers
and bytes in the register:
Table B.1 Coordination of the register and byte order
Data
type in
Master
(PR200 /
SMI200)
Byte order of the slave, set in master
Data type in Slave
(MSD200)
INT
UINT 32 (Little-endian)
REAL
FLOAT32 (Little-endian)
INT
UINT 32 (Middle-endian)
REAL
FLOAT32 (Little-endian)
INT
UINT 32 (Big-endian)
REAL
FLOAT32 (Big-endian)
INT
No usage
REAL
When configuring the master, consider the following:
– values can only be transferred to MSD200 with write function 16 (0x10);
– for INT variables, always set the number of registers to 2.
Fig. B.1