AdvancedHMI Software

General Category => Support Questions => Topic started by: anthony92 on May 29, 2018, 09:30:18 PM

Title: C# - EthernetIPforCLXComm.BeginWrite Cycles
Post by: anthony92 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.
Title: Re: C# - EthernetIPforCLXComm.BeginWrite Cycles
Post by: Archie 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.