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,331
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
256
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,150
Hello guys I am just wondering do I need to set up each channel configuration, including enabling the channel , ranging … if I have already...
Replies
8
Views
2,008
Hi, I have a device which is giving out a 4 -20mA signal but the ADC's on the PLC channel do not match. The supplier is saying the channel needs...
Replies
2
Views
751
Back
Top Bottom