Help - Search - Members - Calendar
Full Version: CX-protocol macro problem
Forums.MrPLC.com > PLCs and Supporting Devices > Omron
sttchui
Hi,

I have this Omron PLC CJ1m-CPU12 linking with a Display panel(Model Olympex Em3200 series) . It is trigger by an DM to select the display message.
Unfortunely i dont have the manual how the display panel read the the code, i only know that is receive only ascii code & it reading from an Dm1600 in the program, this program is quite old,

i only wanted to change the letter in the display, whenever i change the letter, nothing will be display it will only show the previous message, when i try re-load the old program the display is working again.

IN PSW1REV3 i try the trace function
i try message Model 'AS3GHE' bit no.4 will trigger this.
then complete the sequence 'COMPLETE' bit no.11
then show the next model 'BJ1GX' bit no.1


The i try modify the ascii code in the protocol macro? i just delete the Old ascii code message AS3GHE & change eg. AM8EX & insert the new message but nothing will be display on the display panel. i also does not understand what the code represent int he protocol macro? anyone can teach me? or exmple i can lern how to program setting the protocol macro?

Please help

Thank you!

regards

sttchui
PMCR
sttchui

It sounds like you need to do some digging to understand the device that you are communicating with.
Here are some basics.
D1600 is the sequence number that is being triggered when the PMCR instruction is executed.
This should be a BCD number from 1 -12, or 20. Those are the sequence numbers listed in your PMCR.

From ladder, you trigger a Sequence.
A Sequence is made up of up to 16 Steps.
Each step can be a Send, Recieve, Send & Recieve, Wait, Flush, etc.
In your case, each Sequence has only 1 Step, and each Step is simply 1 Send command.
The Send command references a Send Message. This is the item that you want to edit.

Click to view attachment

If we take a look at the above message, it is made up of several components.

The <h> in the beginning of the message is a substitution of the item in the Header <h> column. So, STX (or chr(02)) is the header for the message.
The <t> at the end is the Terminator. Again, the item in the Terminator <t> column is added into the message.
Then the middle of the message is made up of fixed items. The '+' character seen in the message is a seperator between the items used to create the message, and they are not characters that are actually sent.
So, if the message was constructed as "Hello "+"there "+"my friend", this would be send out the port exactly the same as if the message were constructed as "Hello there my friend".
To understand these items, you need to understand the protocol for the device.
BITS N BYTES
"D1600 is the sequence number that is being triggered when the PMCR instruction is executed.
This should be a BCD number from 1 -12, or 20. Those are the sequence numbers listed in your PMCR".

Just to clarify. Communications sequence number parameter C2 in PMCR instruction can be Hex 0000 to 03E7 OR Decimal 000 to 999.
Don't forget to use # prefix for hex or & prefix for decimal.
So to call Sequence 20 you can use either #14 or &20.

smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.