Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

checkport (8) at start in CR310


Steve Sep 21, 2018 01:53 PM

I know you can look at port 8 at power up in the 1000 to call a subroutine to SW12, set values.

What can be done on the 310?  I'm not having any luck using C2 or this since there are 2 ports and no flags in the 310.


JDavis Sep 21, 2018 03:14 PM

You can read Status.PortStatus(2) on the CR310.


Steve Sep 21, 2018 04:54 PM

Hi JD,

I'm aware of that.  Here is an example of what I'm trying to do:

sub subroutine3

'load fixed variables and ensure radio is on after powerup

StationId=609

SW12(1)

portset(8,1)

endsub

BeginProg

If checkport(8)=false then subroutine3

scan

This doesnt seem to work in the CR310 substituting port 8 with c2 since it's not being used.


JDavis Sep 21, 2018 09:20 PM

Try:

If Status.PortStatus(2)=false then subroutine3

Log in or register to post/reply in the forum.