Communication Settings

Last modified by Hunter on 2023/08/24 18:13

Communication Settings

For example, controller is WECON LX3V series PLC and HMI is PI8070. Please set communication protocol, and set communication parameters in the [Communication].

Timeout

The follwoing are description for the timeout settings from [Communication].

Communication Timout settings.png

  • Wait Timeout(ms): The time HMI waits for a response from the PLC.
  • Receive Timeout(ms): The longest waiting interval between the HMI receiving two characters.
  • Retry Count: The number of retries when there is no response in the communication between HMI and PLC.
  • Retry Timeout(s): The PLC will not be accessed during the Retry Timeout period when there is no response in the communication between HMI and PLC.
  • Delay Time(ms): The speed at which the HMI communicates with the device.
  • Continuous Length: Default value 0 means the maximum length specified by each protocol. Addresses dealt by Maximum Span settings, its read length for single time, if the Continouous Length is 1, which means it will read/write the every register one by one. If the length of Maximum Span is greater than or equal to the Continuous Length, the continuous read/write will be performed in groups according to Continuous Length.
  • Maximum Span:  Set the interval for reading PLC addresses. If there exists two same register type addresses, their interval is less than the set value of Maximum Span, then they will be integrated into a continuous address, otherwise it will be divide into two independent addresses.

Operating Procedure

After creating the [Quick_Start] project,select the [Project]->[Communication].

12.PLC Protocol_html_39c0d342e4b1dd27.png

Click “Setting” to open protocol setting windows.

 12.PLC Protocol_html_7b55815442c5544a.png

Select communication protocol, users could select serial port, Ethernet port, CAN port or USB.

  • Serial port:

12.PLC Protocol_html_bc7e88067e699a2b.png

  • Ethernet port:

12.PLC Protocol_html_c3865bcb998b6ded.png

  • CAN port (In COM1):

12.PLC Protocol_html_61c3c5fa99a24463.png

  • USB port:

 12.PLC Protocol_html_a3105a98b48fb9b7.png

About parameters for communication, PLC default communication parameters have been written to PIStudio, the user can adjust them according to the actual situation.

  • Serial port:

12.PLC Protocol_html_36a660d5c1a17a95.png

  • Ethernet port

Please note, during using Ethernet port, please set HMI IP in [Project Setting], the detailed, please refer to [Project Setting] chapter.

12.PLC Protocol_html_eebfc6b1337ea860.png

Click [OK] button to save settings and close the dialog;