We have been using AXBB-E with a custom IHM in a industrial application for some months, and it's working great. But now we need to add support for syncronous pin on/off. I presume that I need to use the function int AddPinSwitch2(int Output, bool Active, int ID) to make a synchronous pin change, but when I try something like this:
- Code: Select all
UC100.ReturnVal cmdRet = (UC100.ReturnVal)UC100.AddLinearMove(0, 50, 0, 0, 0, C, Feed, 1);
cmdRet = (UC100.ReturnVal)UC100.AddPinSwitch2(1, true, 2);
cmdRet = (UC100.ReturnVal)UC100.AddLinearMove(0, 0, 0, 0, 0, C, Feed, 3);
cmdRet = (UC100.ReturnVal)UC100.AddPinSwitch2(1, false, 4);
I expect to Pin 1 of port 1 (maybe... it was not clear which port is "the I/Os (value 1 to 10.)") to be true while the Y axis moves to 50 mm and to pin 1 of port 1 to be off while the Y axis moves to 0. But no pin changes its state! I checked the output with the function int GetOutput(ref long Out) and measured the voltage in some pins, but neither change.
Can anyone help me with that plis? Thanks!