Siemens S5 PLC instruction

cck

Member
Join Date
Jun 2003
Posts
8
Hi,

Can anyone help me to interpret this line of command.

:C DB80
:L DW35
:FDG
:C DB121
:L DW36
:FDG
:XG
:L KG +2000000+08
::G
:DO =I-DB

NOTE :I-DB, is a user declaration.

I'm confused with the :DO =I-DB, I check the instruction list
and it came out with 2 instruction, DO and DO=. I don't
know which one is used in the program?

Regards
cck
 
cck said:

:C DB80 ;open DB80
:L DW35 ;load DW35 to accu
:FDG ; code conversion from fixed (accu) to fload (accu)
:C DB121 ; open DB121
:L DW36 ; load DW36 to accu1, (accu1 goes to accu2)
:FDG ; as earlier
:XG ; accu1 * accu2 to accu1
:L KG +2000000+08 ; load to accu1, accu1 goes to accu2
::G ;divide
: DO =I-DB ;indirect operation for next command (= use formal operand named: I-DB)


 

Similar Topics

i have two plc 1. s7-1212dc/dc/dc ip; 192.168.0.1 2. s7-1500 1513-1pn ip; 192.168.3.2 i need to get data from plc1 to plc2. any idea how to do...
Replies
5
Views
91
Good morning fellow sea captains and wizards, I am being asked to do the above and obtain 4 values from each slave, I know about the MRX and MWX...
Replies
27
Views
630
Hey guys, I have to take an upload of a program on an S71200 PLC to change a hardware config option and then redownload the program with this...
Replies
3
Views
111
Hello Guys, I want to establish profinet communication between siemens plc and my system using python programming. Which python lib can i use to...
Replies
12
Views
361
When you download a DB, the values get overwritten by what is in the "actual" column in offline DB. Does this happen at the start of the PLC...
Replies
6
Views
142
Back
Top Bottom