Hey Hood. Good to see ya.
I'm told that the Cubloc can use VB script. Sadly, the guy who did this before me and had it all hashed out and working, cant provide me with the VB script he wrote. Seems that his computer that ran his machine took a turn for the worse and wont be resurected any time soon. I guess I have to start from scratch...
Here are my thoughts on how the tool changer (VB script) needs to work
Things I need the script/plc/mach to do
Solenoids-
Activate and deactivate turret solenoid. (activated is for up/rotate, deactivated is for down)
Activate and deactivate turret rotation braking solenoid.
Activate and deactivate turret stop solenoid.
Sensors-
Read and report current turret position.
Read and report status of turret up/down position.
Proposed order of operations for tool change request-
Request tool change to position 1-8.
Read turret rotational position, 1-8.
Read turret up/down position, up or down.
Report turret rotational position, 1-8.
Report turret up/down position, up or down.
If requested rotational position equals reported rotational position do nothing.
If requested up/down position equals down, do nothing.
If requested up/down position equals up, fault.
If requested rotational position is not equal to current rotational position, activate turret up/down/rotate solenoid.
When rotational position equals requested position 1 before requested position, activate braking solenoid.
When rotational position equals requested position, activate turret stop solenoid, deactivate turret up/down/rotate solenoid and deactivate turret braking solenoid.
Deactivate turret up/down/rotation solenoid.
Report turret rotational position, 1-8.
Report turret up/down position, up or down, if up, fault.
I wish their were a translator that could take the above and write it in VB!