Hello Guest it is September 18, 2020, 10:22:55 AM

Author Topic: GetPortByte with CSMIO  (Read 1150 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

  •  1,665 1,665
    • 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 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