Analogue I/O in S7-314

Twister_vdb

Member
Join Date
Dec 2003
Posts
8
Hi people,

I have a S7-314 with a analogue I/O module type 334-0ce00-0aa0. My question is: how do I program a analogue input in a program.
Let's say I want to get the input value and compare it to a certain constant value.

The module is having 4 AI and 2 AO
When I put this module in the hardware cof I see on the input 288...295 and on the output I see 288...291
What can I do with those adresses?


Thx in advance,
Vincent
 
The numbers you see in the hardware configuration define the periferal word address space the module is writing to. The addresses are byte addresses so you will go through two addresses for each input or output channel.
To reference the data in the plc you need to use the PIW prefix for inputs (periferal input word) or the PQW prefix for outputs. So the input addresses in your case would be:
PIW288, PIW290, PIW292 and PIW294
The output addresses would be:
PQW288, PQW290
Treat them like you would any other integer in your program.

Keith
 

Similar Topics

Hi all I have a cpu314c with a 5ai/2ao unit, I can’t get any reading within my program. I have tried with the simulator and the program works...
Replies
8
Views
2,351
Hi, I have a ControlLogix system with 1756-IF16 analogue inputs. I can't scale the inputs at the card as there is a requirement to facilitate...
Replies
14
Views
372
Dear community, I am trying to find a tool for Allen-Bradley PLCs similar to SiVArch for Siemens PLCs to automatically generate faceplates and...
Replies
0
Views
94
I am using Mitsubishi PLC :FX3g and downloaded the program in it. When I connect Mitsubihi FX2N-4DA expansion module, it lost its communication...
Replies
3
Views
267
Hi All, I am working on a small PLC system having Compact Logix LE33 PLC having only two IF4 card. Some of these channels are used for 4 - 20...
Replies
4
Views
1,167
Back
Top Bottom