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

Hello everybody, I'm currently working on a project where I need to implement an IoT platform based on Microsoft Azure Cloud. Communication is...
Replies
2
Views
80
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
111
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
432
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
945
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
638
Back
Top Bottom