Technical Forum

SIMATIC S5 / STEP 5

Logic

Thread Starter: Karnan   Started: 7/13/2012 3:41 PM   Replies: 1

« Previous thread Next thread »
Page 1 of 1 (2 items)
  7/13/2012, 3:41 PM
Joined 12/16/2011
Last visit: 5/21/2013
Posts: 217
Rating:
Rated: Outstanding [4 out of 5 / rated 4 time(s)]. (4) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hai All,

Please Anyone tell me the meaning of logic,

C DB 10
DO FW100
L DL 0
L FY9
!=F
=F100.0

If Anyone Having operating & Commissioning Manuals of WS 420-20 HMI,Please give a link..

Please Anyone give clarification on pointer DO.

Thanks&Regards,
Raj
Top
  7/14/2012, 1:35 PM
Joined 12/22/2006
Last visit: 5/18/2013
Posts: 1295
Rating:
Rated: Excellent [4.01 out of 5 / rated 151 time(s)]. (151) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hello,

C DB10 just opens the datablock 10, telling that the next commands will use that from that block.

When executing the couple of instructions
DO FW100
L DL0

you do not load DL0, but the DL with the index specified in FW100.

Example:
If FW100 contains the value 8, you load DL8


The instructions
L FY9
!=F
=F100.0

check if the loaded value equals 9, and if true, flag F100.0 is set to "1". Else F100.0 is reset.




Best regards
jklm

Suggestion was helpful? Thanks to rate it.
Top
Page 1 of 1 (2 items)
Actions