Please Explain and help ^^

HelloAll

Member
Join Date
Dec 2009
Location
bb
Posts
19
Could anyone explain the code for me please, Step by step
Thank you ,

-----------------------------

FUNCTION FC 3 : VOID
TITLE =
VERSION : 0.1


VAR_INPUT
rFillValue : REAL ;
iStartStep : INT ;
iEndStep : INT ;
iItemNo : INT ;
iBytesBetweenEntries : INT ;
dbDB : BLOCK_DB ;
END_VAR
VAR_TEMP
iDBNumber : INT ;
iLoopCount : INT ;
dwOffset : DWORD ;
END_VAR
BEGIN
NETWORK
TITLE =

L #iBytesBetweenEntries;
SLD 3;
T #dwOffset;

OPN #dbDB;
LAR1 P#DBX 0.0;
L #iStartStep;
+ -1;
L #dwOffset;
*D ;
+AR1 ;

L #iItemNo; //make item zero based
+ -1;
SLD 5;
+AR1 ;
L #iEndStep;
L #iStartStep;
-I ;
+ 1;
L: T #iLoopCount;
L #rFillValue;
T D [AR1,P#0.0];
L #dwOffset;
+AR1 ;
L #iLoopCount;
LOOP L;
SET ;
SAVE ;
END_FUNCTION
 

Similar Topics

Hi, I am new to PLC's and I have a program that I need a little help with an explanation of how it runs line by line. I understand the overview...
Replies
30
Views
6,957
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
Good Afternoon , We have a number of Kinetix 6000 Servo Drives and motors. I'm trying to understand these a little ( really alot ) better...
Replies
16
Views
6,348
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,718
Back
Top Bottom