8/9/2021 7:50 PM | |
Posts: 3 Rating:
|
I'm very new to PLCs and trying to implement a program to have a pneumatic cylinder cycle between 2 positions every few seconds. I'd like the frequency of that delay to be user selectable on an HMI when the cylinder is not operating. I'm using an S7-1200 with a KTP400 on TIA portal V17. I've set the PV of the TON block to a "Time" tag. I've linked an I/O on the HMI to this tag. However, whenever I interact with the I/O, if I set a value of "255" it stays once I exit the keypad, but if I enter "256" the value resets to "0". If I enter "257" the value resets to "1" and so on. TON seems to operate off of the value that it resets to, I.E. if I enter "257" and it resets to "1" the time is much faster than 255. I'm sure it's some thing stupid but I don't understand what's going on. The HMI I/O is set to display in decimals with 6 digits. The HMI tag is linked to the PLC tag.... what am I missing? AttachmentCycleProgram.pdf (226 Downloads) |
Follow us on