Data Conversion in PLC
Hi,
I am using ABB servo drive (Microflex e150) and PM564 eco Plc for RUN out application.
Servo drive and PLC are communicated by MODBUS TCP/IP. In servo drive the value are in float 32 bit register (net float is used to transfer the data between servo drive and plc). i got some value in terms of two 16 bit register for each 32 bit value.
My question is how to convert two 16 bit register value into single value in plc to get same value as i got in servo drive.
is there any specific block for data conversion (two 16 bit register value in one 32 bit register value)?
Answers
Hi,
Try placing the two consequent 16-bit registers in two concequent words in AC500 - e.g. %MW0.0 and %MW0.1
Then use DWORD_TO_REAL and put %MD0.0 at the input of the block (%MD0.0 will consists of %MW0.0 and %MW0.1 - look Modbus Address Table in help)
May be you will need to exchange the place of 16-bit registers, when placing them in %MW0.0 and %MW0.1, depending of BigEndian order in the servodrive
Add new comment