11
New from Old / Re: The Sequel - Oh Blimey I bought a CNC Lathe (Beaver TC 20)
« Last post by awemawson on July 10, 2025, 10:06:00 AM »So now I need to devise a way of testing the outputs. Presented as two cables again terminated in 37 pin D Sub connectors so compatible with the break out board. And again the PLC diagnostic allows me to see what it thinks that it's outputting (it's a Q word) :
[ You are not allowed to view attachments ]
However the way (I think) that the PLC works is that it maintains a table of these bits that is updated by the PLC program and every cycle of the program the table is copied to the Q outputs.
This means that if the PLC program is running anything I write to the outputs will be overwritten in milliseconds and if the PLC program is NOT running I can't access the diagnostic facilities so a bit of a catch 22 situation.
I can do a somewhat less stringent test by reading a particular Q word and checking what is actually set but I'm not convinced that that's good enough?
[ You are not allowed to view attachments ]
Off to scratch my head a bit !
[ You are not allowed to view attachments ]
However the way (I think) that the PLC works is that it maintains a table of these bits that is updated by the PLC program and every cycle of the program the table is copied to the Q outputs.
This means that if the PLC program is running anything I write to the outputs will be overwritten in milliseconds and if the PLC program is NOT running I can't access the diagnostic facilities so a bit of a catch 22 situation.
I can do a somewhat less stringent test by reading a particular Q word and checking what is actually set but I'm not convinced that that's good enough?
[ You are not allowed to view attachments ]
Off to scratch my head a bit !