The Compax3 has two Digital to Analog Monitors on X11/3 and X11/4 used to monitor such things as current, position, velocity, etc. On the IEC61131 versions of the drive (the T30 and T40 technology levels), these D to A monitors can also be used as +/- 10 V general-purpose, analog outputs (8 bit resolution), which can be assigned using the C3.AnalogOutput0_DemandValue[634.4] and C3.AnalogOutput1_DemandValue[635.4]. To view these objects and to pull them up to the Status Display window, Activate Object Window.
See this FAQ:
Users can use the Optimization window to set the analog outputs to objects commonly used without having to use CoDeSyS.
To configure the Analog Monitor outputs, use the Optimization Tool available in the C3 Servo Manager Software. See the D-A Monitor tab in the lower left quadrant of the Optimization screen. Click the button and select the desired 'source' for the particular DA Monitor output. Once this is selected the Compax3 unit will retain that setting for runtime usage. See screen shot 2 below.
Even though the units are listed as rev. it will be based on the selected objects units. For motor position, this will be based on the drive configuration (millimeters, inches, degrees or increments).
User Programmable in CoDeSyS
When using CoDeSyS to write to the analog outputs, use those same objects C3.AnalogOutput0_DemandValue[634.4] and C3.AnalogOutput1_DemandValue[635.4]. These are an integer data type!
In the Optimization D-A Monitor you need to configure the Compax3 to use the DemandValue from CoDeSyS.
This shows writing a value directly to the analog output from CoDeSyS. A variable could be used as well.
See T30_ANALOG_WRITE.PRO in below zip
Writing the position to an analog output:
See t30_analog_pos.pro in below zip
Note as the data type is an INT, in this case of running between 0 - 10mm, the analog output would only toggle in 1volt steps to 10volts. To get better resolution, set the scaling in optimization by 32767:
See t30_analog_pos2.pro in below zip
Sample Codesys Projects:
modified 7Oct2015 nc