help me change to LAD these codes

smiles

Member
Join Date
Oct 2006
Location
DaNang
Posts
36
I just start with S7300, here is the code I saw in help document about timer

01. A I 2.0
02. FR T 1
03. A I 2.1
04. L S5T#10S
05. SE T 1
06. A I 2.2
07. R T 1
08. A T 1
09. = Q 4.0
10. L T 1
11. T MW 10
12. LC T 1
13. T MW 12

I look up, compare o_O but not find out the ladder for codes from 10 to 13, could you save a little time help me !!!
Thanks !!! :)
 
Hello Smiles;

03. A I 2.1
04. L S5T#10S
05. SE T 1
06. A I 2.2
07. R T 1
08. A T 1
09. = Q 4.0
10. L T 1
11. T MW 10
12. LC T 1
13. T MW 12

Tranlstes to:
S5Timer_Lad.jpg


Hope this helps,
Daniel Chartier
 
That helps much !!!
In the library, I also see the term timer coil like SP, SE .... I remember that in S7200 not have this term, do you know what are they used for, stand for output Q of timer ???
Thanks :)
 
Hello smiles;

The following 2 rungs are equivalent as far as logic is concerned:

S7Timers_2forms.jpg


Just check the online help for more details.
But you have less functionalities if you use the coil form of the timer, no reset bit, no binary or BCD countdown values available.

Hope this helps,
Daniel Chartier
 
how can I make it right

My coding is about when your input I0.0 =1 then you transfer the content 2#1111111 to MB0
begining
A I0.0
L 2#11111111
T MB0
not work
Second way
A I0.0 (or L IW0 then compare with 1)
L 1
==I
JC test
test: L 2#11111111
T MB0
still not work :oops: (MB0 always contents 11111111 before I turn on I0.0)
what wrong with my code ???
thanks :)
 
Try this:-AN I0.0
JC Test
L 2#11111111
T MB 0
Test:

The load command in siemens is unconditional i.e. it does not rely on the RLO to carry out this command
 
Hello smiles;

What in your program resets the bits in MB0?
Once they have been set, they will remain set...
A suggestion: start by moving 0 to MB0, then test your original logic.

Hope this helps,
Daniel Chartier
 
Hi Daniel !
You say Move instruction, I did it in LAD and run well, change to STL, this is the last :)
A I 0.0
JNB xng
L W#16#FF
T MB 0
xng: NOP 0
Thank you !!!
 

Similar Topics

Hello, I've got a program from a customer for a Micrologix, but can't open it without upgrading to a newer version of RSlogix 500. Could someone...
Replies
3
Views
1,019
Hi guys....first post here. It's been about 6 years since I worked heavily with PLC's and automation, but I'm getting back into it. I was hoping...
Replies
20
Views
3,587
I've been working on a fairly large project for the last couple months and have come to a road block for the last week. I've spent countless...
Replies
7
Views
7,112
Hello in a factory uses a allen brdaley servomotor and controller which became obsolete , I want to know the criteria for the choice of a new...
Replies
3
Views
1,592
Dear Friends, I hope all are going well. Anybody can help me how to set System Date &Time (PC) as PLC Date & Time in FTView SE. Is there any VBA...
Replies
0
Views
2,213
Back
Top Bottom