Please Explain me the code

Step7_aby

Member
Join Date
Feb 2008
Location
Abu Dhabi
Posts
22
I do have experience in Triconex TMR PLC, ABB AC-450 controllers and many others apart from Siemens systems and i am working on them for the first time, i know some basics of siemens product but i am not proficient with them.
I have to code in STL as it is the requirement,thanks for the info about OB1, could you expain me how FB and FC works i mean the concept for the same and also i would like to know when to use "interface" with IN,OUT, IN-OUT,TEMP,STAT.

i am sending you one small code could you expain me step by step working

L #START_ADDR
T #SRCADDR
L 0
ADD: L W#16#1002
T LW 0
L #NO_BYTES
T LW 2
L #SRC_DB
T LW 4
L #SRCADDR
SLD 3
OD DW#16#84000000
T LD 6
L W#16#1002
T LW 10
L #NO_BYTES
T LW 12
L #DEST_DB
T LW 14
L #DEST_START_ADDR
SLD 3
OD DW#16#84000000
T LD 16
CALL "BLKMOV"
SRCBLK :=#SANY
RET_VAL:=#RET_VAL
DSTBLK :=#DANY

CALL FC 2
NM_BREAKER_1:="DEVICE".NM_breaker

CALL "BLKMOV"
SRCBLK :=#DANY
RET_VAL:=#RET_VAL
DSTBLK :=#SANY

L #SRCADDR
L #NO_BYTES
+I
T #SRCADDR
L #DEV_CNT
L 1
+I
T #DEV_CNT
L #NODEV
>=I
JC A001
JU ADD
A001: BLD 130


Thanks in Advance

please try to explain me clearly i mean what each step is suppose to do
 
yeah i did, but it was not that helpful, it will be better if someone can explain me how the things are going on each register level pls
 

Similar Topics

Good Afternoon , We have a new machine from Italy , and for some reason , the servo actual positions quit updating on the HMI. I looked at...
Replies
6
Views
1,713
I don't understand why this code is written the way it is. It is from a Modicon Quantum. It is in a custom function block. The calling block is...
Replies
6
Views
1,733
Hi all, I'm struggling to understand a bit of code at the very start of an FB. OPN DB 100 AN M215.5 L DBW 452 L 1 +I T DBW 452 = M 215.6...
Replies
12
Views
2,730
Just for readers in the US, when I write 'gas' I mean it as a state of matter, not shorthand for gasoline :-) I don't understand the logic of a...
Replies
39
Views
11,170
Good Morning , Could you please explain to me what a S:FS is , what the purpose of it is and why would it be used in a rung. Thanks so much.
Replies
4
Views
1,716
Back
Top Bottom