Third party software and hardware support forums. > PoKeys
Mach4 Pokeys57E Registers
(1/1)
Tony Bullard:
I haven’t installed the Pokeys57E plugin yet because I don’t have the device yet. Will the plugin show the Pokeys registers in the Mach4 Register Diagnostics? Like this picture below.
If so I assume I could get and set the value of the Pokeys pin with code like this:
--- Code: ---function GetRegister(regname)
local inst = mc.mcGetInstance()
local hreg = mc.mcRegGetHandle(inst,string.format("iRegs0/%s", regname))
return mc.mcRegGetValueString(hreg)
end
--add TB 01-09-18 add Pirce Delay Register value
local inst = mc.mcGetInstance()
local val = mc.mcProfileGetString (inst, "Registers", "PierceDelay" , "nf")
local hreg = mc.mcRegGetHandle (inst, "iregs0/PierceDelay" )
mc.mcRegSetValueString(hreg, val)
--end add
--- End code ---
Will changing the pin value change the pin state?
thosj:
Looks like there are PoKeys registers, lots of them.
Don't know about changing value changing state.
Tom
Tony Bullard:
Thank you Tom,
That answers all my questions. I should be able to change the value and state of most of those "pins" with code.
shandseimela@gmail.com:
:( I tried to change the value of the register on the pokeys but didnt work ....please help
cncprint.blogspot.com:
https://www.youtube.com/watch?v=P_vKWz55DkU here i show you how to edit registers and write into them with a servo example
Navigation
[0] Message Index
Go to full version