Author Topic: GetPortByte with CSMIO  (Read 620 times)

0 Members and 1 Guest are viewing this topic.

Offline wantcnc

  • Active Member
  • Posts: 35
    • View Profile
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

  • Active Member
  • Posts: 1,121
    • 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.

Offline wantcnc

  • Active Member
  • Posts: 35
    • View Profile
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