You are on page 1of 6

OMRON / OMFINS Data Types

Applies To: CitectSCADA Summary: The OMRON Driver supports the following data types: Solution: Data Types I/O Relay Link Relay Holding Relay Timer / Counter status Error Status Data Memory Data Memory Timer (present value) Where w bb is the word number is the bit number 00 to 15

Address Format wbb LRwbb HRwbb TCwbb Ewbb Swbb Dw.b DMw PVw

Citect Data Type DIGITAL DIGITAL DIGITAL DIGITAL DIGITAL DIGITAL DIGITAL BCD/INT/LONG/LONGBCD/STRING BCD/INT/LONG/LONGBCD/STRING

The OMFINS Driver supports the following data types for CV type PLCs Data Types Control I/O Control I/O Memory Memory Memory Memory Timer Timer flags Count Count flags Data memory Data memory Register Register Where Address Format CIOa CIOa.b or a.b Gc Gc.d Ae Ae.f Tg TFg Cg CFg Dh Dh.d Iri Dri Citect Data Type INTEGER DIGITAL INTEGER DIGITAL INTEGER DIGITAL INTEGER DIGITAL INTEGER DIGITAL INTEGER DIGITAL INTEGER INTEGER

a b c d e f g h i

0 to 2555. 0 to 15. (Bits are not writable from is 2500.0 to 2555.15) 0 to 255. (0 to 5 are not writable) 0 to 15. 0 to 511. (256 to 511 are not writable) 0 to 15. 0 to 1023. Flags are not writable. 0 to 24575. 0 to 2

The OMFINS Driver supports the following data types for CS type PLCs Data Types IO Relays IO Relays IO Relays Words Data Memory Timer PV Counter PV Step Timer CPU Bus Link Area Auxiliary Area Index Register Data Register Timer Completion Flag (read only) Counter Completion Flag (read only) Step Timer Flag (read only) Action Flag (read only) Transition Flag Status (read only) I/O Relay Link Relay Holding Relay - Bits Holding Relay - Bits Holding Relay - Words Timer / Counter Status Error Data Memory - Words Address Format a.b CIOa.b CIOa Dc Td Cd STe Gf[.b] Ag[.b] IRh DRh TFd CFd STFe ACi TNe j LRe HRk Hl.b Hl TCl Sh Em DMd Citect Data Type DIGITAL DIGITAL INTEGER INTEGER INTEGER INTEGER INTEGER INTEGER INTEGER INTEGER INTEGER DIGITAL DIGITAL DIGITAL DIGITAL DIGITAL DIGITAL DIGITAL DIGITAL DIGITAL INTEGER DIGITAL DIGITAL DIGITAL INTEGER

Timer / Counter Present value Data Memory - Bits Work Area - Bits Work Area - Words Where a b c d e f g h i j k l m 0 to 6143 0 to 15. 0 to 32767 0 to 4095 0 to 1023 0 to 255 0 to 959 0 to 15 0 to 2047 0 to 36815 0 to 8191 0 to 511 0 to 31

PVl Dc.b WRl.b WRl

INTEGER DIGITAL DIGITAL INTEGER

Omron PLC undocumented mode select


Applies To: CitectSCADA 1.00, 1.01, 1.10, 1.11, 1.20, 2.00, 2.01 Summary:

When an Omron PLC is powered up, the default operating mode is "RUN". When the PLC is in Run mode, some registers cannot be written to.

Solution: To write to these registers the PLC must be in Monitor mode. There are some status registers that can be written to, writing a "1" to the appropriate register will change the mode. The registers are as follows. S0 Program Mode. S1 Debug Mode. S2 Monitor mode. S3 Run Mode. These addresses should be configured as type DIGITAL in Citect. All these registers are not present in all PLC's, but the important one is S2 for Monitor mode (which should be in all PLC's).

Using OMRON Protocol


Applies To: CitectSCADA 1.00 1.01 1.10 1.11 1.20 2.00 2.01 3.00 Summary: How do I setup and use the Omron protocol?

Solution: The serial drivers PCxI, MCxI, COMxI or COMx may be used. Setup the PLC with the appropriate communication parameters i.e. baud rate, parity, protocol, and station number, communication mode (single or multiple link). Ports form Special Opt: I/O Devices form Name: Number: Address: Protocol: Port name: Citect.ini option [OMRON] InitPLCMode If InitPLCMode is set to 2, the driver will put PLC into monitor mode when the unit is started up. Standard citect.ini options
[OMRON] MaxPending = 2 Block = 32 bytes Retry = 1 Delay = 0 TimeOut = 2000 milliseconds PollTime = 0 WatchTime = 30 seconds.

-s Use single link instead of multiple link User supplied unique name Network wide I/O device number 0 to 31 OMRON Use the "Port name" from the Ports form

Files

OMRON.DLL - The OMRON driver for windows OMRON.DBF - The OMRON variable template

OMRON Variables
Digital Sbb Ewbb LRwbb HRwbb wbb TC0 Where Status Error Link Relay Holding Relay I/O Relay / Internal Aux Relay Timer / Counter status w is the word number

bb is the bit number 00 to 15 When writing to Status bits. bb is the bit pattern to be written. 0 2 3 Integer DM0 PV0 Data Memory Timer/Counter Present value Program mode Monitor Mode Run Mode

You might also like