Mapping Digital Inputs

In Studio 5000, open the Input_Digital_Custom routine in the Input program of the S88Builder Task.

  1. Input Points – enter a new rung for each input slot.  Program this rung to map the real inputs to the RSlots[rss].Digital.Bit[p] tag as shown in the following image: 

An alternative to this would be to just copy the entire input word into the RSlot digital tag as shown (the advantage here is less code and chance for messing things up; the disadvantage is lack of ability to troubleshoot by seeing the state of each input):
2. Input Faults – (optional) map the digital input faults to the RSlots fault tag as shown above. If any specific input channel faults then the engine logic will handle it appropriately.

3. Example VFD digital input –The VFD digital inputs must be handled here but require some additional logic since we typically combine the drives inputs and outputs on the same slot.  Therefore, this slot is bi-directional.  As you can see in the image the RSlot data is moved to a temporary tag that is updated with a masked move of the drive inputs and copied back to the RSlot array.  This is done to preserve the output states in the RSlots array.

Alternative method; break out each drive input, which is similar to how the module inputs were broken out above for general I/O (the advantage is that it provides visual feedback of input states for troubleshooting).

Updated on December 6, 2018

Related Articles

Password Protected