M206X with P326 AOUT

M206X with P326 AOUT

There is no AOUT command in the MC206X so it is necessary to run a program that makes the CANbus telegram from the values you want to send. See the attached program.

The program sets up an unused CAN buffer to CAN ID required CAN(-1, 5, 16, $60, 8, 1)

It writes data to 4 analogue outputs with this syntax: CAN(channel#,7,message#,byte0,byte1..)  e.g. CAN(-1,7,16,0,0,0,0,0,0,0,0)

The program takes values from VRs and sends them to the P326:
aout_0 = VR(200)
aout_1 = VR(201)
aout_2 = VR(202)
aout_3 = VR(203)