Author Topic: C# - EthernetIPforCLXComm.BeginWrite Cycles  (Read 1309 times)

anthony92

  • Newbie
  • *
  • Posts: 22
    • View Profile
C# - EthernetIPforCLXComm.BeginWrite Cycles
« on: May 29, 2018, 09:30:18 PM »
How does Write vs BeginWrite compare in regards to performance (Write cycles to plc) when writing to a PLC internally? Or does BeginWrite just use Write as well?

The reason I ask is because I want to consolidate a bunch of Write commands into a single PLC cycle.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: C# - EthernetIPforCLXComm.BeginWrite Cycles
« Reply #1 on: May 29, 2018, 11:44:24 PM »
BeginWrite puts the request in the que then immediately returns to the caller. Write calls BeginWrite, then waits for a response form the PLC before returning to the caller.

The AdvancedHMI driver supports multiple reads in a single packet, but not multiple writes, unless you are using WriteUDT

You mention a single PLC cycle, but keep in mind the reading/writing is independent of the PLC scan cycle on a ControlLogix.