1473
« on: February 15, 2015, 11:04:18 AM »
The brains local var is just that a local var that does not exist outside of the brains.
The macropump ( the CB/vb side of mach3) reads at the same rate as a brain. It is a continuous loop, when it ends it starts again. The macropump has access to ALL of the Mach3 programable functions. BUT if really large in size it CAN carry more overhead for mach3.
Code in the macropump could look for the signal and trip a flag as well and store it as a #var . #var 500-600 are persitant vars. They remain IF mach3 is shut down. The pump could also drive a LED for you to visually see if it tripped.
The advantage of teh brain is it runs at kernal speed internally where as the machrpump is limited to 10 hz internally. BUT both read the inouts at the same speed 10hz.
The advantage of the macropump is it has access to all mach3 internal functions. It can also call other macros into play.
(;-) TP