This is description R64-Regler
It can not sie to read through what and how
Programme is complete 100%
it possibly called out indirectly ? FB102
Last edited by botr; 28.11.2006 at 22:02.
Oh, now I can see, you must have the Comreg from Siemens to administrate the controler. (I have read your question for comreg)
In DB21 have we found 7E.., that is the code for flags (Merker). Also the fb102 writes the flags you asked.
When I have unterstand right, in DB2 (in the moment I don't have your program) ist the administrationcode for using FB102 from your plc. In newer versions of step5 the progam can call the FB102 directly, in older versions on other way (over an OB (OB13??))?????????.
... there\'re 10 kinds of people ... those who understand binaries and those who don\'t …
and the third kinds of people … those who love TIA-Portal
yes R64 was (is) a very nice piece of software.
to make some thinks a little bit clearer a short desription.
the controller consits of three parts:
1. FB 102 is the controller program, it's an assembler fb, so it dosen't help mutch to look inside
2. DB 2 is the controller list, normally created with COMREG but possible without, if you know where to put what .
here you tell the operating system of the S5 cpu the no of your controller db(s) and the scan time of your controller(s)
3. DB xx (in your case DB 20, 21 ..) is the controller db, here you find all the data thats used for a single controller - setpoint, gains ...
in dw156 for example is the destination address of your + / - outputs
it's called "Ad d r e s s of process Image of output bits" - that's how your M 104 is handled.
inside your plc program you have to set thinks like controller enable or supply setpoints / actual values (depending on the parameters of the controller, structuer bits etc). evverthing else is done by the operating system of the cpu. that's why you won't find a call of the FB102 or a T MB104 or something like that.
all these things are nicely described in the manual of the R64.
hope that helps and have fun