Machsupport Forum

Third party software and hardware support forums. => CS-Lab => Topic started by: wantcnc on May 22, 2018, 04:26:41 PM

Title: Confused on how to address outputs in VB with CSMIO
Post by: wantcnc on May 22, 2018, 04:26:41 PM
have been struggling with this for several days now.
I want to control output 3:
So in VB  I Set adn reset Outbit (90,3)
then in ports and pins I set output #3 to port 10 and then pin number 3....


result it works.. Now I change the pin number to 4 assuming that that changes the output pin(terminal) as per documentation
and it does not change, it stays at 3 as before

the strange thing is that #outout 1 and 2 controling the spindle are routed to pin number 12 and 13 in the ports and pins and this works fine

what am i missing...

additional info
it seems that the spindle controll does adhere to the ports and pins pin number, but the VB side does not, it only follows the VB code and that needs to allign with the signal output# number

still confused as the documentation does not explain this verry well




Title: Re: Confused on how to address outputs in VB with CSMIO
Post by: Graham Waterworth on June 01, 2018, 06:45:19 PM
Cslabs do not use pin numbers they use output numbers so Machs output4 pin number is not Cslabs pin number but the output number on that pin.

So on the Cslabs IP-A device, connection unit terminal 5(out) & 14(return) is output4 so in Mach3 you set output pin to 4

Then in VB you can call  ActivateSignal(OUTPUT4) or DeActivatSignal(OUTPUT4)

Even more confused now?

Title: Re: Confused on how to address outputs in VB with CSMIO
Post by: TPS on June 02, 2018, 05:18:46 AM
have a look on this:

https://en.cs-lab.eu/digital-and-analog-ios-configuration-its-easy/