News:

  • May 01, 2024, 03:25:37 PM

Login with username, password and session length

Author Topic: Example: Emulate DirectSOFT/DirectLOGIC ECWRMID - ECOM100 Write Module ID IBox  (Read 3036 times)

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3665
    • Host Engineering
If you have an ECOM100 module in your Do-more PLC system, and you wish to programmatically configure its Module ID, there is no native instruction to do this.  However, most the expanded IBox logic from DirectSOFT can easily be implemented in a Do-more!

The attached project has a code-block called ECWriteModuleID that utilizes stages to sequence through the necessary steps involved.

ECWriteModuleID Input Parameter:
  • D200 contains the module ID

ECWriteModuleID Output Parameters:
  • C200 Success Bit
  • C201 Error Bit
  • DLV43 Error Code (will be 0 on success; see the DirectLOGIC ECWRMODID IBox documentation for error code information)

ECWriteModuleID Internal Variables:
  • V200 - V203 as the Message Buffer
  • @ECOM_000 device (tweak this for YOUR installation)

$Main has an X0 contact to drive a RUN ECWriteModuleID box.

Just unzip the attached .ZIP file.  It contains the ECWriteModuleIDEmulation.dmd project file, which will work with any Designer version 1.3 or later.

Caveat #1 - if you need to change the DL43 Error Code output parameter address to a different DLV address, you also need to tweak the To DL V43 parameter in the DLWX instruction at rung #4 to the corresponding DLV address (e.g. if you change all the DLV43's to DLV100, then you need to also change the To DL parameter in the DLWX instruction to V100).

Caveat #2 - if your ECOM100 module uses the dipswitch settings as a hard-coded Module ID, this will not work.  The first 5 dip switches must be OFF (switches 0..4).  Remember that switch 7 must be ON in your ECOM100 module for the "IBox behavior" to be enabled in the ECOM100.

As with all examples, this is for educational purposes only and the user assumes all responsibility for its use.

MarkTTU

  • Hero Member
  • *****
  • Posts: 278
    • SamJackson.com
Nice! Thanks for this!