Hi,
I am using a TRI-PLC FMD88-10 and I am trying to communicate with a drive (optidrive E2). I use the RS485 serial port with the RTU protocol.
The drive parameters are : address : 1, baud rate : 38400 and time out : 100ms.
So, I wrote this :
' WRITE PARAMETERS TO THE DRIVE
WRITEMODBUS 13,1,0,DM[5] 'Command word
WRITEMODBUS 13,1,1,DM[6] 'Speed reference
' READ PARAMETERS FROM THE DRIVE
DM[1] = READMODBUS(13,1,5)'Status word
DM[2] = READMODBUS(13,1,6)'Motor real speed
DM[3] = READMODBUS(13,1,7)'Motor current
DM[4] = READMODBUS(13,1,23)'Drive temperature
I can read all the values but I can't write anything.
Do you see any mistakes?
Many thanks
Martin Degrave