get port status

hello all
I was just reading about the SEND_COMMAND IO,'GET INPUT 2' as a command to check the status of an IO port. Now how can I read the info about that port ? I want to check the ports status at each start up to test for a certain condition and decide what page the TP will go from there.
I was just reading about the SEND_COMMAND IO,'GET INPUT 2' as a command to check the status of an IO port. Now how can I read the info about that port ? I want to check the ports status at each start up to test for a certain condition and decide what page the TP will go from there.
0
Comments