simatic S5135U Analog value

sahin2000

Member
Join Date
Sep 2004
Location
kocaeli
Posts
12
hi

I have follow configuration,

6ES5922-3UA11 S5-135U CPU922R
6ES5465-4UA12 ANALOG INPUT (0-10v in)
6ES5420-4UA13 DIGITAL INPUT
6ES5441-4UA12 DIGITAL OUTPUT

write FB10
---------------------------------------------------------
:rlg:ae

BG D KF
KNKT D KY
OGR D KF
UGR D KG
EINZ Q BI
XA Q D

:LW =BG
:LW =KNKT
:BE
--------------------------------------------------------
PB1

JU FB1
BG :KF+128
KNKT :KY 0,4
OGR :KF+2000
UGR :KF+0
EINZ :F 0.0
XA :FD194
:BE


OB1
----------------------------------------------------------
JU PB1
:BE

BUT NO ANALOG VALUE ?


My problem,not read analog value.How I can read analog value from sensor(0-10v).

I don't use PW address.(dip swit 128)

ANALOG INPUT manuel ?

best regards
 
Twice the problem???

Originally posted by sahin2000

PB1

JU FB1

I assume that is a 'typo' as it seems you are using FB10 for your analogue read/write, at least that's what you wrote in the post.

I might be wrong on this, but I thought that FB250 and FB251 were for reading and writing analogue blocks in Step 5.

Paul

P.S Krk, say hallo to Billy from me.
 
Hi Paul

It's FB250 for CPU945 (integrated), normally for this processor I'm pretty sure it's FB31.

It's probably been renumbered in this particular system as FB10 is normally REG:SCHB (shift register) in a 135U

I also noticed where he's posted the declarations & displayable part of 'FB10' that UGR has been declared as a KG but parameterised in the PB1 call as a KF

I didn't know you could do this....maybe he is calling the wrong block as you said......


Kevin

P.S ...You see Billy a lot more than I do nowadays!
 
krk said:

It's FB250 for CPU945 (integrated), normally for this processor I'm pretty sure it's FB31.

I also noticed where he's posted the declarations & displayable part of 'FB10' that UGR has been declared as a KG but parameterised in the PB1 call as a KF


Kevin

Thanks for putting me right on that, I have only worked with CPU945's and that was what I was basing my reply on.

I never noticed the differences with the declared and paramatised data types in sahin2000's post.. Perhaps his problem is that simple :confused:

Paul
 
hi

I have follow configuration,

6ES5922-3UA11 S5-135U CPU922R
6ES5465-4UA12 ANALOG INPUT (0-10v in)
6ES5420-4UA13 DIGITAL INPUT
6ES5441-4UA12 DIGITAL OUTPUT

write FB10
---------------------------------------------------------
:rlg:ae

BG D KF
KNKT D KY
OGR D KG (excuse Plucas,krk)
UGR D KG
EINZ Q BI
XA Q D

:LW =BG
:LW =KNKT
:BE
--------------------------------------------------------
PB1

JU FB1
BG :KF+128
KNKT :KY 0,4
OGR :KG+2000000+3
UGR :KG+0
EINZ :F 0.0
XA :FD194
:BE


OB1
----------------------------------------------------------
JU PB1
:BE

BUT NO ANALOG VALUE ?


My problem,not read analog value.How I can read analog value from sensor(0-10v).

I don't use PW address.(dip swit 128)

ANALOG INPUT manuel ?

best regards
 

Similar Topics

HI i would like to know how to get a variable that will store the amount of times a program has been executed. The issue is I have 3 DBs for 1 FB...
Replies
2
Views
82
Dear sir, I am using SIMATIC 300, CPU 315-2DP , (6ES7 315-2AF03-0AB0) VIPA 603-1CC21 A1.0 RAM 32KB, Firmware=V4.0.8 The problem Im using MPI...
Replies
2
Views
169
Hi, I received this SIMATIC S7-300 training kit for maintenance. When I power it up, the PLC doesn't go to RUN mode and the STOP mode led is...
Replies
7
Views
305
I'm trying to build my Classic Step 7 programming skills this weekend. I get stuck on little things that are not covered in YouTube tutorials. I'm...
Replies
7
Views
319
I am utilizing both HMI and SCADA for my project. Both HMI and SCADA have identical tags. When I modify the tag value on HMI, it is reflected in...
Replies
2
Views
156
Back
Top Bottom