Machsupport Forum

Third party software and hardware support forums. => CS-Lab => Topic started by: wantcnc on May 20, 2018, 12:44:47 PM

Title: GetPortByte with CSMIO
Post by: wantcnc on May 20, 2018, 12:44:47 PM
I'm trying to get my Emco 120P ATC to work directly with CSMIO,
the ATC uses 4 signals for 8 tool positions, therefore its easier to read a whole byte of port pins and then mask of the top 4 and then looking for a value as it rotates.

so can I use GetPortByte() which seems to be a mach3 function or do I need to use the Modbus functions such as GetInbit  as the CSMIO sample shows ?
Title: Re: GetPortByte with CSMIO
Post by: TPS on May 21, 2018, 09:08:08 AM
have you tryed:

value = GetInput(XX)
Title: Re: GetPortByte with CSMIO
Post by: wantcnc on May 21, 2018, 05:03:33 PM

will try as soon as I get the outputs to behave.
 currently coded it with getinbit which "compiles" and runs.
for some reason the outputs ignore me, eventhough the power relay works from mach....

Thanks for the suggestion
JB