Improving Automation Through Innovation

Send with ACK

 

This DirectSoft project scans for switch state changes (X0-X15) and sends a message to DataWorx if a switch has been toggled.  With the ACK feature it detects if DataWorx received the message.  If the PLC does not receive confirmation it will send the message again every second until it receives confirmation.  Additionally, if there are more switch toggles it will store the switch notifications onto a pending buffer list so no switch states will be lost.

 

Below are downloadable DirectSoft projects for each supported DirectLogic family:

 

DL 05  DL 06  DL 205  DL 405

 

This DirectSoft project scans for switch state changes (X0-X15) and sends a message to DataWorx if a switch has been toggled.  With the ACK feature it detects if DataWorx received the message.  If the PLC does not receive confirmation it will send the message again every second until it receives confirmation.  Additionally, if there are more switch toggles it will store the switch notifications onto a pending buffer list so no switch states will be lost.

 

To use this sample please ensure the following:

 

  1. The PLC is configured to use ACK.  In DataWorx you can do this by going to the PLC's configuration screen and clicking "Configure PLC Memory..." button.  Once in the Configure PLC Memory window check the "Require RX" option and click the "Autoconfigure" button
  2. The PLC is switched from Program to Run mode. This is to ensure that the sample will run properly since the ladder logic executes in stages and must be initialized properly
  3. Verify that rung #86 in the ladder logic uses the correct ECOM slot #.  Look for the LD K290 block.  2 represents the slot #.  So if the ECOM is on slot #3 you would have to change the LD K290 block to LD K390
  4. Verify that rung #86 condition slot 2 not busy is updated for your configuration.  Refer to the DataWorx Monitor documentation under heading Reference for a list of all slot busy SP bits
  5. Verify that rungs #91-#94 are updated for the SP busy/error bits.  Refer to the DataWorx Monitor documentation under heading Reference for a list of all slot busy SP bits

 

Note that the samples are saved in ZIP format. You may need to download additional software in order to open ZIP files. A free ZIP file application can be downloaded at www.winzip.com

 

Back to Sample Code

Sample Code