NatureUhFindsAWay
Member
Hi All,
I'm brand new to DirectSOFT 5, and fairly new to PLC programming in general, so go easy. I was handed a program with no information on the rack configuration (I'm trying to get that now), but I had some questions about how the PLC handles analog input.
In the attached picture, it appears to me that an input bit closes, and the PLC loads the raw analog value into the accumulator. The subsequent MULB, DIVB and ADDB blocks scale the input, and the desired value is copied from the accumulator to V-memory where it is read by the SCADA system.
Questions:
1) How does the PLC know which input to read? Is it just smart enough to know that when X15 = 1, read a certain analog input and put it into the accumulator?
2) Is the PLC also smart enough to clear the accumulator to make way for the next input?
I apologize profusely for my ignorance, and thank you in advance for your help.
I'm brand new to DirectSOFT 5, and fairly new to PLC programming in general, so go easy. I was handed a program with no information on the rack configuration (I'm trying to get that now), but I had some questions about how the PLC handles analog input.
In the attached picture, it appears to me that an input bit closes, and the PLC loads the raw analog value into the accumulator. The subsequent MULB, DIVB and ADDB blocks scale the input, and the desired value is copied from the accumulator to V-memory where it is read by the SCADA system.
Questions:
1) How does the PLC know which input to read? Is it just smart enough to know that when X15 = 1, read a certain analog input and put it into the accumulator?
2) Is the PLC also smart enough to clear the accumulator to make way for the next input?
I apologize profusely for my ignorance, and thank you in advance for your help.