The VPE-6070 Analog Output 4 Channel 0-10 VDC Module has 4 analog outputs that can be independantly controlled.
The analog output module can be installed in any backplane position. The NodeID referred to in the demo program is the "Backplane ID" determined by the backplane jumpers and the addition of the slot in which the power supply is plugged into.
Example 1: If the backplane has no jumpers and the analog output module is plugged into slot position 0, the NodeID is 0 + 0 = 0.
Example 2: If the backplane has a jumper in the "8" position and the analog output module is plugged into slot position 2, the NodeID is 8 + 2 = 10.
During normal operation, the status LED flashes GREEN once per second as a "heartbeat" indicator that everything is functioning normally. If the onboard firmware detects any fault conditions, the Status LED will flash either AMBER or RED.
For the following demo code to work, the "libwlmio" library has to be installed.
The Backplane has ID = 0 and the analog output module is plugged into slot postion 4.
# vpe6070 Analog Output 0-10 VDC Module 4 Channel # Demo Program sources outputs: # 1 VDC on Channel 1 # 2 VDC on Channel 2 # 5 VDC on Channel 3 # 10 VDC on Channel 4 import asyncio from pywlmio import * NodeID = 4 #NodeID location is the Bacplane ID (Jumpers) and Power Supply Slot location async def main(): init() vo = VPE6070(NodeID) while True: try: await asyncio.gather( vo.ch1.write(1000), # Values written in mV (1 VDC) vo.ch2.write(2000), # Values written in mV (2 VDC) vo.ch3.write(5000), # Values written in mV (5 VDC) vo.ch4.write(8000) # Values written in mV (10 VDC) ) except WlmioWrongNodeError: print("Error NodeID = %d Wrong module installed" % NodeID) # Error Check if wrong type of module installed except WlmioInternalError: print("Error NodeID = %d Timed out" % NodeID) # Error Check - Typically module not installed await asyncio.sleep(1) asyncio.run(main(), debug=True)Back to Top