Horner OCS300 serial communications

innov8

Member
Join Date
May 2006
Location
sd
Posts
8
Hi all!
I'm trying to set up an OCS 300 to poll a Square D/ Merlin Gerlin power meter for data so I can store chuncks at a time and in the event of failures or outages record it to the controller, while at the same time giving me the ability to view the data in realtime.
I have experience with ladder logic with this and other brands, but this is the first time I've tried to do any networking.
I believe I have the RS-485 connections correct (I've been in contact with tech support) but all the modbus, registers(are they internal or external?), and whatnot is going over my head.

So far I know I need to open the port, but after that...I'm stuck. Could someone make up a small program to give me an idea which direction I ned to go?
The powermeter book lists one of the register I want to read as 4030, and then also lists several "Supported MODBUS Commands"

0x03 read holding registers
0x04 read input registers

Thank you for any help you can provide
 
innov8,

Here is some sample code using the Modbus Master and Modbus Slave comands. These examples use a XLt model, and CScape 8.52b. Originally they were used for communications through the built-in cell modem on the XLt series. I think the Modbus master samples should help you.

In a recient project I used an ethernet connection and the Modbus TCP/IP protocol option. It is very easy to configure.

Hope this helps.
 
(in reference to your tag line) I suppose I'm 10 of these people who don't understand binary:)

what about reading the information out of the register? my controller won't read higher than %R2048 or something to that effect. How do I access 4030?

Thanks
 
Thanks Nate and Steve



So I need to insert a Modbus Master block and input %R0031 as the MCB register to read that specific address from the power meter? I want to be sure I'm doing this right.
Also...there are around 30 different values that I will need to pull from the meter; is there some way to poll an array of registers?
 
Included within the 0x03 (Read register) command is the starting register and the number of registers to be read. One command can read consecutive registers, maximum 125. As long as the spread between the lowest and highest address you need to read is less than 125, you can get them with a single read command. Otherwise, you'll need to set up more than one.

Sorry, but I've never set up a Modbus command in a Horner PLC. I've only done it in GE Fanuc units, so I can't offer specifics. However, I've always found Horner tech support to be very helpful, even if their manuals are a bit on the "techie" side.
 
Last edited:

Similar Topics

I was loading a program onto an XE1e2 PLC and it got stuck on these two windows and won't progress. It won't let me connect from the PC to reload...
Replies
0
Views
73
I am trying to set up a piece of equipment with a Horner HE-X4R. I'd like to use structured text and so far I'm just trying to get a basic On/off...
Replies
0
Views
70
I am having a problem communicating my PLC with Drive via Modbus connection. I start by opening the port and there is no problem, but then when I...
Replies
6
Views
200
Hello, I’m new to this forum and if I’m posting incorrectly let me know. I’ve been having an issue I can’t seem to figure out. I’m sure it’s...
Replies
1
Views
119
I seem to be making this harder than it should be, and Its not making any sense. I simply need to move a real variable to two integer variables...
Replies
8
Views
980
Back
Top Bottom