ANY Pointer, SFC83 and OB1

AndreasK

Member
Join Date
Apr 2005
Location
Birkenfeld
Posts
1
Hello altogether

I would like to pass on some expirience I made the last few days.

I buildet an Anypointer using Lokaldaten :

// U M 21.0

// SPB end7

//Typ 1002 =Byte

L W#16#1002

T LW 0

//Anzahl Byte (Number of Byte)

L 20

T LW 2

//DB Nummer (DB Number)

L 302

T LW 4

//Bereichszeiger (pointer)

L P#DBX 0.0

L DB402.DBD 74

SLD 3

OD DW#16#84000000

T LD 6

NOP 0

After this Network I started the SFC83 Read DB from MMC.

Everything worked fine. After this i called up an other FC in OB1 using the same Type of pointer and nothing worked anymore. So in the first Line of the second FC I put in BEA (End absolut), but this did`nt help.

So what I´m trying to say is:

1.When calling a Fc even with no Code at all the Lokaldaten a not longer valid anymore.



2.The SFC83 takes a couple of PLC Cycles and in each cycle needs the Values at his Inputs again he does not save where he startet and so on.

Sorry fort he german coding.

Andreas (still learning to post)
 

Similar Topics

I have a word in some DB which I want to load to AR1 and use as a pointer. In order to do this I need to write L DBxy.DBW xy SLD 3 LAR1 I...
Replies
3
Views
534
I am trying to access the value of a pointer via OPC UA in Codesys. I can share it directly and in a struct but I cant access the value of it when...
Replies
5
Views
1,617
Why does my deconstruction of the input pointer only work with its own instance DB not inside the multi instance FB...See .doc The pointer at the...
Replies
8
Views
2,349
Hi All, in many library function of TiaPortal some data must be write using the pointer format........ eg.: P#DB90.DBX0.0 WORD 10 is it...
Replies
5
Views
2,819
I have a very strange issue and I cannot figure out why it is not working. I read input of type pointer and store it to local temp type any. I...
Replies
4
Views
1,933
Back
Top Bottom