Welcome, Guest. Please login or register.
Did you miss your activation email?
May 25, 2012, 09:56:48 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  Mach Screens
| | |-+  Parallel Port 2 Pin Status
Pages: 1   Go Down
Print
Author Topic: Parallel Port 2 Pin Status  (Read 1011 times)
0 Members and 2 Guests are viewing this topic.
sharbold
Active Member

Offline Offline

Posts: 21


View Profile
« on: October 11, 2009, 11:05:56 PM »

Are there OEM LED codes for monitoring the pin status of a second parallel port? Where might I find the codes? I would like to add a parallel port 2 pin status to a diagnostics screen like the one that exists presently for port1

Thanks
Sam

Logged
Mattw
Active Member

Offline Offline

Posts: 41


View Profile
« Reply #1 on: December 29, 2009, 10:23:34 PM »

I too would like to know this, but here is what I did to get around it.

When you assign a particular pin to an output or input in Ports and Pins, you can use the macropump to evaluate the IsOutputActive() or IsActive() and then SetUserLED() accordingly.

Here is a sample from my macropump...

'Spare output 7
If IsOutputActive(Output7) Then
   SetUserLED(1000,1)
Else
   SetUserLED(1000,0)   
End If
Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!