Monday, April 1, 2013

Conzerve EM6400 RS485 Communication with Omron CP1E-CIF11

Conzerve (Schneider) EM6400 RS485 Communication with Omron CP1E, CP1W-CIF-11 Thanks to: tech_Modbus_v1r0c0.pdf http://www.simplymodbus.ca/index.html http://www.chipkin.com/how-real-floating-point-and-32-bit-data-is-encoded-in-modbus-rtu-messages/ http://www.modicon.com/techpubs/dcon7.html Critical Issues 1) Omron CP1E a) Built-in RS232C Port: Cannot be used for RS485 Communication directly; a conversion unit is required “CJ1W-CIF11” for Hardware compatibility to RS485 Protocol. Other option is to use Optional Port (Refer: User Manual W479-E1-01_DTP2nd.pdf, Article: A-4-3) b) Serial Option Port: Use CP1W-CIF-11 Card for RS485 Communication c) Sending Data Packet and Received Data Packet Bytes; Be Careful about Byte in Word Format i.e. D1200 or D1300 is a 16-bit word, and ‘Useful Byte’ is somewhere in lower byte (bit 0 to bit 7) or higher byte (bit 8 to bit 15) d) Number of data bytes to Send (for reading avg. current from address 3912(0F48 Hex) this is ‘04’) (Use a tool to arrange the bytes properly of the received 32-bit real word data. Ref. http://www.chipkin.com/how-real-floating-point-and-32-bit-data-is-encoded-in-modbus-rtu-messages/ ) 1) Conzerve EM6400 a) Default Baud Rate: Check Baud rate, parity, start/stop bit etc. b) Address to Read: Address given in the ‘user manuals’ are “One More” than the proper address required, Modscan Software uses “One Less” address to communicate e.g. for Average Current use address 3912(0F48 Hex) instead of 3913(0F49 Hex)(as given in the user manual) [Use function code for READ as 03] c) Floating Point Format: 32-bit Float (Real), Little endian is used in EM6400 System Settings Omron CP1W-CIF-11 Card DIP Switch Settings S/W Setting 1 ON - use terminating resistor 2 ON - 2-Wire Connection 3 ON - 2-Wire Connection 4 OFF - Always OFF 5 OFF - RS Control Disabled for RD (data always received) 6 ON - RS Control Enabled for SD Software Settings can be easily done using wizard or manual helps

No comments: