meiSqNodeAnalogOutPtr gets a controller memory pointer and mask of an analog output (channel on the SynqNet node sqNode) and writes them to the locations pointed to by ptr and mask. The memory pointer and mask obtained by this function can be used when setting up the data recorder or user limits.
Analog values are held as 16 bit words either in the upper or lower two bytes of a controllers memory location hence the mask obtained from this function will either be 0xFFFF0000 or 0x0000FFFF.
The sample code below shows how to set up the data recorder to record analog output channel 2 on node 1.
|| | Copyright © 2001-2021 Motion Engineering|