The leader in industrial automation and control solutions

Ethernet Protocol Communication Program

The Ethernet Protocol program allows users to define and configure the communication frame of the Ethernet communication module manually.

Register Ethernet Protocol Program

Serial Protocol New Program in MapleLogic

Step 1: To create a new Ethernet protocol program, in the Project Windowright-click Program and left-click New Program.

Ethernet Protocol New Program Selection in MapleLogic

Step 2: Left-click Ethernet Protocol and left-click OK.

Write Program

  • The following example reads 5 WORDs from D100 of a separate Maple Systems PLC (100.100.100.20).
  • The data is saved on another Maple Systems PLC at D100 using the Ethernet protocol.

Register Host

Ethernet Protocol Register Host in MapleLogic

Step 1: To register a new host, left-click Add Host.

Ethernet Protocol Host Setting in MapleLogic

Step 2: Set the following parameters:

  • Comm. Result: M0000
  • IP Address: 100.100.100.20
  • Port No:10262 (UDP)
    • TCP uses port 10260.
  • Rx/Tx Timeout: 0
Ethernet Protocol receive header tail used in MapleLogic
  • The receive header/tail is used when the entire frame has a header and tail, but it receives as the header and tail are split.
  • All frames are combined, from the time the header has been received to the time when the tail is received, to process as a frame (request or response).

Register Frame

Ethernet Protocol Register Frame in MapleLogic

Step 1: Left-click Insert Frame.

Ethernet Protocol Insert Frame in MapleLogic

Step 2: Left-click Add.

Segment Configuration – Receiving Frame

  • This Rx frame is for the WORD block read command.

Segment ID

  • This will set the ID in the protocol.
Ethernet Protocol Transmitting Frame Segment ID in MapleLogic
  • Set the Segment Type to Constant and the ASCII to PLC_M.

Frame Number

  • This sets the frame number area in the protocol.
Ethernet Protocol Recieving Frame Frame Number in MapleLogic
  • Set the Segment Type to Don’t Care and the Length to 1.

Cmd

  • The command of the ACK response to the WORD block is 52H.
Ethernet Protocol Transmitting Frame Cmd in MapleLogic
  • Set the Segment Type to Constant, the Length to 1, and the Binary to 52.

Reserved Area

  • The reserved area is 00H.
Ethernet Protocol Transmitting Frame Reserved Area in MapleLogic
  • Set the Segment Type to Constant, the Length to 1, and the Binary to 00.

Data Area

Requesting Data Register

Ethernet Protocol Transmitting Frame Requesting Data Register in MapleLogic
  • Set the Segment Type to Constant, the Length to 8, and the ASCII to D0000100.

Number of Requesting Data

  • The number of requesting data is received as 005H since 5 data is requested.
Ethernet Protocol Transmitting Frame Number of Requesting Data in MapleLogic
  • Set the Segment Type to Constant, the Length to 2, and the Binary to 005.

Relieving Data

  • The requested data is received sequentially.
Ethernet Protocol Transmitting Frame Receiving Data in MapleLogic
  • Set the Segment Type to Lined device, the Length to 10, and the ASCII to D00100.

Check Sum

  • The checksum area covers the entire frame area.
Ethernet Protocol Receiving Frame Check Sum in MapleLogic
  • Set the Segment type to BCCLength to 2, and the BCC Range to 0 ~ 6.

Result

Ethernet Protocol Receiving Frame Result in MapleLogic
  • This is the result of the receiving frame.

Segment Configuration – Transmitting Frame

  • This Tx frame is for the WORD block read command.

Segment ID

  • This will set the ID in the protocol.
Ethernet Protocol Transmitting Frame Segment ID in MapleLogic
  • Set the Segment Type to Constant and the ASCII to PLC_M.

Frame Number

  • This sets the frame number area in the protocol.
Ethernet Protocol Transmitting Frame Frame Number in MapleLogic
  • Set the Segment Type to Constant, the Length to 1, and the Binary to 01.

Cmd

  • The command of the ACK response to the WORD block is 52H.
Ethernet Protocol Transmitting Frame Cmd in MapleLogic
  • Set the Segment Type to Constant, the Length to 1, and the Binary to 52.

Reserved Area

  • The reserved area is 00H.
Ethernet Protocol Transmitting Frame Reserved Area in MapleLogic
  • Set the Segment Type to Constant, the Length to 1, and the Binary to 00.

Data Area

Requesting Data Register

Ethernet Protocol Transmitting Frame Requesting Data Register in MapleLogic
  • Set the Segment Type to Constant, the Length to 8, and the ASCII to D0000100.

Number of Requesting Data

  • The number of requesting data is received as 005H since 5 data is requested.
Ethernet Protocol Transmitting Frame Number of Requesting Data in MapleLogic
  • Set the Segment Type to Constant, the Length to 2, and the Binary to 005.

Receiving Data

  • The requested data is received sequentially.
Ethernet Protocol Transmitting Frame Receiving Data in MapleLogic
  • Set the Segment Type to Lined device, the Length to 10, and the ASCII to D00100.

Check Sum

  • The checksum area covers the entire frame area.
Ethernet Protocol Transmitting Frame Check Sum in MapleLogic
  • Set the Segment type to BCCLength to 2, and the BCC Range to 0 ~ 5.

Result

Ethernet Protocol Transmitting Frame Result in MapleLogic
  • This is the result of the transmitting frame.
  • Communication is established every 0.1 seconds.

Frames

Ethernet Protocol Transmitting Frame Frames in MapleLogic
  • The receiving and transmitting frames will be displayed in the special program.