Host Engineering Forum

General Category => Do-more CPUs and Do-more Designer Software => Do-more Programming Examples => Topic started by: franji1 on October 06, 2015, 11:58:23 AM

Title: Example: Emulate DirectSOFT/DirectLOGIC ECIPSUP - ECOM100 IP Setup IBox
Post by: franji1 on October 06, 2015, 11:58:23 AM
If you have an ECOM100 module in your Do-more PLC system, and you wish to programmatically configure its IP Settings (IP Address, Gateway Address, Subnet Mask), there is no native instruction to do this.  However, the equivalent expanded IBox logic from DirectSOFT can easily be implemented in a Do-more!

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

ECSetupIP Input Parameters:

ECSetupIP Output Parameters:

ECSetupIP Internal Variables:

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

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

EDIT: One caveat - if you need to change the DL42 Error Code output parameter address to a different DLV address, you also need to tweak the To DL V42 parameter in the DLWX instruction at rung #4 to the corresponding DLV address (e.g. if you change all the DLV42's to DLV100, then you need to also change the To DL parameter in the DLWX instruction to V100).

EDIT2: Second caveat - remember to turn ON dipswitch 7 in your ECOM100 module (NOT the CPU) to ENABLE IBOX functionality in that ECOM100.

As with all examples, this is for educational purposes only and the user assumes all responsibility for its use.
Title: Re: Example: Emulate DirectSOFT/DirectLOGIC ECIPSUP - ECOM100 IP Setup IBox
Post by: MarkTTU on October 06, 2015, 12:56:42 PM
Super helpful! Thanks!

How hard would the write Module ID command be?
Title: Re: Example: Emulate DirectSOFT/DirectLOGIC ECIPSUP - ECOM100 IP Setup IBox
Post by: franji1 on October 06, 2015, 01:29:30 PM
Super helpful! Thanks!
You are welcome!

Quote
How hard would the write Module ID command be?
Not hard.  Very similar.  Will post that one soon as a different example.