Omron Host Link implements communication CPU Units that are compatibles with C-mode commands via Host Link. The communications blocks are dynamically created according to the pooling cycle defined on the Access Type for each Device Point.

Heading 2 for a New Section

Communication Driver Name: OmronHostLink

Implementation DLL: T.ProtocolDriver.OmronHostLink.dll

Protocol: Host Link Interface protocol

Interface: Serial

Equipments supported: CS/CJ/CP-series CPU Unit or NSJ Controller

Communication block size: 29 Word Addresses

Protocol Options: Block Size, Ignore Non-critical error, and Change the PC mode for Writings

PC Hardware requirements: Standard PC with RS232 port

Supported Operands:


OperandRead WriteData TypeAddress Size
IR – Internal RelayYesYesWord2 bytes
SR – Extended RelayYesYesWord1 bit
HR – Holding BitYesYesWord2 bytes
AR - Auxiliary BitYesYesWord2 bytes
DM – Data MemoryYesYesWord2 bytes
PV – Timers/Counter ValueYesYesBCD2 bytes
TC – Timer/Counter StatusYesYesBCD2 bytes



Channel Configuration

Protocol Options

Max Block Size: Determines the maximum block size. Default: 29 Word Addresses

Ignore Non-Critical Error: Indicates the driver's behavior when the PLC returns a non fatal error status of 64:

  • True: When it returns a Success with the 64 error code, set the tag quality to GOOD 
  • False: When it returns a Failed with the 64 error code, set the tag quality to BAD

Change the PC mode for Writings: Indicates if the communication driver should send a command that changes the PLC state to MONITOR in order to perform writing operations. If not, the writing will fail (error code 1). Default = True

Settings

Serial channels:

Default RS-232 serial port configuration



Node Configuration

Station Configuration

Serial (RS232) Channels:

The syntax is: <Device id>

Where:

    • <Device id> is the PLC address

Multi Serial channels:

Syntax: <Port>;<Device id>

Where:

    • <Port> is the COM port for communication (default is COM1)

Ex: COM1;0



Point Configuration   

The syntax for the communication points is: <Memory Area>:<Address>

The Valid memory areas are:

  • IR Internal Relay Bit Area
  • HR Holding Relay Bit Area
  • AR Auxiliary Relay Bit Area
  • LR Link Relay Area
  • DM Data Memory Area
  • PV Timer/Counter Present Value Area
  • TC Timer/Counter Status Area

Ex:

  • CA:0 Memory Area = CA, Address = 0
  • CIO:20 Memory Area = CIO, Address = 20
  • EM0:1 Memory Area = Extended Memory 0, Address = 1
  • EM6:1 Memory Area = Extended Memory 6, Address = 1



Troubleshoot

The status of the driver's execution can be observed through the diagnostic tools, which are:

• Trace window
• Property Watch
• Module Information

The above tools indicate if the operations have succeeded or have failed. A status of 0 (zero) means communication is successful. Negative values indicate internal driver errors, and positive values indicate protocol error codes.


PLC Error CodeDescription 
1Not executable in RUN mode
2Not executable in MONITOR mode
4Address over (CPM1 PLCs)
5Invalid Header
6Invalid Address
7Invalid block size
11Not executable in PROGRAM mode
19FCS error
20Format error
21Entry number data error
22Command not supported
24Frame length error
25Not executable
35User memory write-protected
163Aborted due to FCS error in transmit data
  • No labels