Sending negative values to Omron E5CN

RoTaTech

Member
Join Date
May 2003
Location
Cobourg, ON, Canada
Posts
418
I have 24 E5CN controllers hooked up RS485 to a Omron CJ.

They communicate using the Compoway/F protocol, and a routine written with the PCMR instructions to format data to send the PV to the controllers, and read both SV and PV.

I can READ positive or negative values from the controller; they are stored as single signed integers.

I can not seem to send a negative setpoint to the controllers.
The value sits in memory as a single word signed integer, but the SV on the controller will not change. If I go to the controller and punch in a negative setpoint, it will accept it, and I can read it properly in the PLC.

Any ideas? I've p-ssed away best part of a day trying to make it work.
 
Check the symbol setup - you may be using an integer - it may need to be setup as signed or maybe real
 
Found it.

The protocol sends double word signed binary to the controller. When I did my math in single word, and MOVing it to the data area to send, it was stripping off the negative, because bit 15 would be the sign bit; the controller is expecting bit 31 to be the sign.
 

Similar Topics

I’m attempting to send a temperature from a SLC-5/02 to an EZiMarquee display. The vendor said to use a MSG instruction to send the data to the...
Replies
1
Views
95
Hi I need to send a null command down a comms port. But in the crimson software when i used /x00 it coming back "Cannot use null character is...
Replies
2
Views
424
I've been having some trouble figuring out how to get the ip address for the mail relay server, is it something that I need to create separately...
Replies
10
Views
918
Hi Everyone, We have Silo System which has temperature sensor and these sensor data will be communicating through RTU unit to the Dedicated PC...
Replies
2
Views
617
I've been trying to get this Ethernet module configured to send emails to our relay server but cannot get it to work. the EN2T is running...
Replies
7
Views
1,764
Back
Top Bottom