Omron C200hx , Cpu64

pgeorge525

Member
Join Date
Oct 2003
Location
Singapore
Posts
1
hi all..

i am a student and working on a project with PLC(OMRON C200HX , CPU64) and barcodes.i want to know how this particular PLC's memory works ? when the barcode reads the data how will the PLC trigger when there is a new data being read ? will it erase the old one or overwrite or shift....

does the barcode(BL 700, Keyence) plays a role in this memory allocation ?

if somebody can explain in simple words...thank you

praveen
 
Hi

Do you want to know how the internal data words works ?????

How do you read the barcodes and where do you want to put the data ?

Regards

Brian
 
Omron

If you call omron they have the best support i have ever seen. You can visit there site to call at www.Omron.com But i belive it will shift the data and at the end of your string it will just keep dumbing the information. but the best thing is to talk to omron
 
Firstly, is the barcode reader connected to the inbuilt RS232 port on the PLC (directly under the peripheral port) or is it connected to a communications board mounted in the CPU. The plugin board could be a C200HW-COM02 / COM03 / COM04 / COM05 OR COM06. The COM04, COM05 and COM06 cards all support the Protocol Macro Function. (i'll explain later).

There are basically two ways to get the data into the PLC. One where the communication ports are set to dumb RS232 ports (see the PLC setup) and require the Recieve (RXD) instruction to read the incoming data. Or if using the communication boards the program could be using a protocol macro function (PMCR).

If you examine the PLC program for either of the instructions then you can get an idea of what is happening with the barcode data...

The RXD(--) and PMCR(--) functions are both expansion functions, therefore I cannot determine the function number associated with each instruction without examining the function mapping.

RXD(--) - Receive
Three parameters make up this instruction....
D -Destination
C -Control Word
N -Number of bytes

RXD(--) reads N bytes of data received at the port specified in the control word, and then writes that data in words D to D+(N/2)-1. Up to 256 bytes of data can be read at one time.

Basically look at the destination specifed by D, this will be the start of where the data will be. The RXD instruction will include all of the Data recieved from the bar code reader ie STX.......etc

If fewer than N bytes are received, the amount received will be read.

The PLC will be incapable of receiving more data once 256 bytes have been received if received data is not read using RXD(--). Read data as soon as possible after the Reception Completed Flag is turned ON. e.g. (AR 08.06 for the RS 232C port, AR 08.14 for the peripheral port for a CQM1H). See the relevant manuals for other PLC's.


Protocol Macro
PMCR(--)
Three parameters make up this instruction....
C -Control Word
S -Source Word
D -Destination

PMCR(--) calls and executes the specified communications sequence (protocol data) that has been registered in the Communications Board installed in the PC. The communication sequence would have been created with a software package called CX-Protocol. (A neat completee package that lets you create protocols and sequences for data exchange with external RS232 devices using one instruction in the PLC ladder logic.)

The send/receive message for the communications sequence registered in the Communications Board must be set to read or write word data when DM isn't specified for S and D. Use a constant when it isn't necessary to set a word for the first output word.

When the communications sequence doesn't require an input word, specify a word address anyway. Data won't be stored in the specified word and the contents of the word will be retained. When the communications sequence does require input words, specify words that aren't used for any other purpose in the program.

The input and output (S and D) can also be set in the communications sequence registered in the Communications Board.

Basically look at the destination specifed by D, this will be the start of where the data will be. D in this case will contain the number of bytes recieved and D+1 will most likely contain the data (depends on how the protocol was wriiten with the CX-Protocol software.) If the Protocol was written correctly then the Raw Data returneed from the Bar Code reader should be there (ie the STX...etc would have been discarded.)

For both cases of the instructions if there ia a * character preceeding the D (ie *DMxxxx)then the programmer is using indirect addressing which I will leave for you to look up.

Apart from that do as bdanelon suggested - contact your local Omron office. They generally have excellent support, and most likely won't ask you for an order number for it like some other suppliers.........
 
Right on the ball. There is a completion flag available. If you do not wish to over write data, you could have a look at using the completion flag to move data into an FIFO routine.
beerchug
 

Similar Topics

I can't figure out how CX-Programmer is connecting to this PLC. - C200HX PLC - in the field. - Laptop connected to a network via ethernet cable -...
Replies
3
Views
2,472
Hello, I have a problem with installing Omron DA004 card in the C200HX PLC. In CxProgammer it keeps giving me "Duplex / Special IO Unit...
Replies
2
Views
3,347
Hi..any expert can advise. I have a old or not very old Omron C200Hx-CPU85z series which I plan to upgrade. I know CS1 series is the recommended...
Replies
1
Views
2,311
Hi guys, do you know if Omron Sysmac C200HX peripheral port supports the FINS serial protocol? Thank you Regards Mike
Replies
3
Views
3,195
Hi guys, I have the following setup Omron Sysmac C200HX connected to a HMI panel using serial port. I need to access some data in the PLC...
Replies
12
Views
8,548
Back
Top Bottom