Using STEP7-Micro / win PLC programming software written procedures to achieve acquisition S7-200PLC analog voltage, and the acquired voltage value (digital form) in a register in VW100.
1, PLC ladder
In order to ensure the normal S7-200PLC analog input in communication with PLC, you need to run a program in the PLC. The following two kinds of design ideas.
1 ideas: the collected voltage digital value (0 to 32000, in the register AIW0) sent to the register VW100. PC program to read the digital values VW100 PLC registers, and then (corresponding to 0 ~ 3200 0 ~ 5v) to calculate the actual value of the voltage based on the correspondence of the digital voltage values. PLC program as shown in FIG.
figure 1
2 ideas: the collected voltage digital value (0 to 32000, in the register AIW0) sent to the register VW415, the digital value divided by 6400 is acquired voltage value (corresponding to 0 ~ 5V 0 to 32000), sending to register VW100. PC program reads the voltage value is the actual value of the PLC register VW100. PLC program as shown in FIG.
figure 2