[?+]: How to read Analog input in simatic manager?

SIMATIC S7-200/300/400, Step7, PCS7, CFC, SFC, PDM, PLCSIM,
SCL, Graph, SPS-VISU S5/S7, IBHsoftec, LOGO ...
venix
Posts: 122
Joined: Fri Feb 29, 2008 4:17 pm
Location: Europe

[?+]: How to read Analog input in simatic manager?

Post by venix »

Hello friends!
I have a big problem,
i don't know how to read an analog input
and how to work with the value of this input.
Is this in binary format after converting A/D?
CoMod
Site Admin
Posts: 3992
Joined: Thu Feb 16, 2006 3:25 pm
Location: Russia

Post by CoMod »

Add Input to Symbol Table
MyAnalogInput PIW 300 INT // Integer !

Add Variable Table to your programm and insert this input.
Normal range for Analog input INT 0...27768
For convert to Real value (for example 0.0...100.0 mm) need use FC105 Scale

See Manuals with usefull examples, pictures and photos

SM331; AI 8x12 Bit Getting Started part 1: 4 -20mA
SM331;AI 8x12 Bit Getting Started Part 2: Voltage and PT100
SM331; AI 8 x 12 Bit Getting Started part 3: Thermocouples

http://support.automation.siemens.com/W ... 166/133300

Russian
http://www.automation-drives.ru/as/down ... 20mA_r.pdf
http://www.automation-drives.ru/as/down ... T100_r.pdf
venix
Posts: 122
Joined: Fri Feb 29, 2008 4:17 pm
Location: Europe

Post by venix »

Thanks! Problem solved