Analog out - control.

markopo

Member
Join Date
Aug 2009
Location
Wrzesnia
Posts
13
Welcome.
I try to make a STL code for controlling a analog modul by
Phoenix Contact (1 AO - 0 - 10V)

I paste a code which doesn't work properly.

OPN DB 23
A I 11.1
FP M 1000.6
= M 1000.3
JC M001
A I 11.0
FP M 1000.2
= M 1000.4
A M 1000.3
JC M001

A M 1000.4
JC M004

M001: A M 1000.3
JCN M002
L DBD 8 - actual value
L 800
-D
T DBD 8
L DBD 8
L DBD 4 - max value
<=D
JC M003
L DBD 8
T PQW 60
JP M002
M003: L DBD 4
T DBD 8
R M 1000.3
BEU
M004: A M 1000.4
JCN M002
L DBD 8
L 800
+D
T DBD 8
L DBD 8
L DBD 0 - min value.
>=D
JC M005
L DBD 8
T PQW 60
JP M002
M005: L DBD 0
T DBD 8
R M 1000.4
M002: BEU

When I address a QW 60 (word) - I have a INT by Siemens (number with sign ) approx - 32000 to + 32000.

When I press Input 11.0


I know from Pascal that there integer value is from 0 to approx. 65000 inc.

My program have two inputs to increase and decrease voltage for checking a proportional valve.
Please help me with this stuff.

When I use I 11.0 QW 60 increase by factor 800 inc. but how can I make good checking that value is max and min.
Simply I like to lock ability to incease value but that goes around from - 32000 to +32000 and I don't know how to control it.

I will look forward for answer.
Marek.
 

Similar Topics

I am having trouble with getting no control of my analog output signal. I am using the SCL function block to control my analog output. The logic...
Replies
11
Views
240
Hello, I am working with the PLC connected to analog devices such as ball valve or pumps. the PLC is Siemens S7. the analog input module is...
Replies
5
Views
523
I seem to be on here often lately but cant find specifics about my situation I am trying to control the drive using both ethernet and analog(for...
Replies
1
Views
747
Hey Guys, I have a pair of machines that we are converting from potentiometer speed control to PLC control with an analog output card. PLC is a...
Replies
6
Views
3,801
I keep getting the following error message when I build my project.{Elementary Variables} : The topological variable is incorrect I'm not sure...
Replies
4
Views
2,137
Back
Top Bottom