What I'm needing help with is understanding what DRO's go to what Mach3 screen buttons or actions.
>>>look in the users docs or on the mach3 wiki for OEM code for: buttons, leds and dros.
How to set the Modbus plugins up to talk to the drive. I saw a tutorial from PoppaBear that helps, but my addresses are all over the place in the drive, especially if I read things back like RPM. I was wondering if I should create a line in the plugin for each address.
>>> most drives have a way to do "Parameter Blocks" just for getting all that different stuff into a block of addresses.
>>> if your drives don't have parameter block addressing, then, put a different config for each function or functions you need
>>> (if they are sequential).
Everything to these drives is 16 bit words, both digital and analog. For instance to start the drive in forward, I need to write 15 decimal to memory word 8601, and to run in reverse I write something like 242 to memory word 8601. To change speed, I write the speed such as 3000 decimal for 3000 RPM to memory word 8602.
>>> in serial plugin modbus, config 0: start address = 8601, number of addresses 2 (since 8602 is the next sequential address and in this case, it controls the speed).
I would need less than 10 addresses for each drive, and each drive would be in a separate Mach3 setup. One Mill, the other Lathe. Last, I'm not sure how to relate the plugin setup to the Pins setup in Mach3.
>>> Ok, again, pull out the modbus/brians user manual, understand that your "Start address" of your config, will be MOD0 (input or out) in Brians.
In Brains:
at the input side, look for OEM LEDs, there is one each for Spindle CW and Spindle CCW use these to drive what value gets driven into your modbus output address that handles direction. So in brains on the input side, look up OEM LEDs
Rung 1, SpindleCW LED -> no-op -> formula: 15*1 ->MOD0 (mod0 equates to 8601 in your drivers direction parameter)
Rung 2, SpindleCCW LED -> no-op -> formula: 242*1 ->MOD0
For rung3, the analog for speed, since you can just drop the speed you want directly then you may need to use your Spindle RPM dro out.
so: Look in the inputs of brains, and pick OEM DROs and pick the spindle RPM DRO.
Rung 3, SpindleRPMdro -> no-op -> MOD1 (mod1 equates to 8602 where your speed value lives).
other control like On/Off ect. you can look through the "Drop down" in the Brains to get an idea of what you can see/control in Mach3, from the OEM list. There is OEM funcitons for" OEMLEDs, OEMDROs, buttons, and user LEDs/DROs as well as some other Mach3 functions.
Scott