Welcome, Guest. Please login or register.
Did you miss your activation email?
August 20, 2018, 08:50:37 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Third party software and hardware support forums.
| |-+  CS-Lab
| | |-+  Confused on how to address outputs in VB with CSMIO
Pages: 1   Go Down
Print
Author Topic: Confused on how to address outputs in VB with CSMIO  (Read 1126 times)
0 Members and 1 Guest are viewing this topic.
wantcnc
Active Member

Offline Offline

Posts: 35


View Profile
« on: May 22, 2018, 03: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




« Last Edit: May 22, 2018, 03:39:58 PM by wantcnc » Logged
Graham Waterworth
Administrator
*
Offline Offline

Posts: 1,828


West Yorkshire, England



View Profile WWW
« Reply #1 on: June 01, 2018, 05: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?

Logged

G-Code is on the cutting edge

Autovalues Engineering, CNC machining specialists, Bradford, England
TPS
Active Member

Offline Offline

Posts: 839



View Profile
« Reply #2 on: June 02, 2018, 04:18:46 AM »

have a look on this:

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

anything is possible, just try it.
if you find some mistakes, in my bad bavarian english,they are yours.
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.20 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!