Hello Guest it is March 29, 2024, 01:27:36 AM

Author Topic: GetPortByte with CSMIO  (Read 2582 times)

0 Members and 1 Guest are viewing this topic.

GetPortByte with CSMIO
« 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 ?

Offline TPS

*
  •  2,501 2,501
    • View Profile
Re: GetPortByte with CSMIO
« Reply #1 on: May 21, 2018, 09:08:08 AM »
have you tryed:

value = GetInput(XX)
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: GetPortByte with CSMIO
« Reply #2 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