(0)| 2/13/2021 12:04 AM | |
|
Joined: 10/7/2005 Last visit: 1/20/2026 Posts: 3054 Rating:
|
Hi NAYMEN two things come into play here to understand what the code snippet does 1.) SFC14 --> see its online help 2.) ANY Pointer format --> see attached pdf based on these, here are the comments for your question marks L #IN0 T LW 28 L DW#16#1002000C // Bytes 0-3 of ANY Pointer: 10hex for S7, 02 for data type BYTE, 000C as repetition factor T LD 30 L W#16#0 // Bytes 4&5 of ANY Pointer: DB number T LW 34 L DW#16#87000010 // Bytes 6-9 of ANY Pointer: 87hex for memory area (= V memory which is local memory of the calling block), 000010 as BYTE.BIT address (=2.0) T LD 36 TAR2 LD 40 UC SFC 14 P#L 28.0 P#L 0.0 P#L 30.0 AttachmentFormat of the Parameter Type ANY.pdf (549 Downloads) |
|
Cheers |
|
This contribution was helpful to
|
|
| 2/13/2021 8:57 PM | |
|
Posts: 16 Rating:
|
Thanx expert I was promoted by one ant rank Thanx for your explain details |
This contribution was helpful to
|
|
Follow us on