12/19/2009 6:22 PM | |
Posts: 197 Rating: (3) |
Could someone give a specific e.g? regards |
12/19/2009 11:24 PM | |
Posts: 197 Rating: (3) |
Hello Sydney, Please see the attachment(screen shot) There's a reset within SET.........I find it little contradictory. regards |
12/20/2009 2:55 AM | |
Joined: 10/7/2005 Last visit: 9/12/2024 Posts: 3020 Rating: (1054)
|
Hello nbk I see where the confusion comes from. A "SET" command sets the RLO (Result of Logic Operation) to "1" (note that the "SET" command stands by itself and is not followed by an address as its sole purpose is to set the RLO to 1). A "S" or "R" command on the other hand do their "job" (setingor reseting of an address) IF the RLO is "1" (and must be followed by an address like Memory bit or Output etc.) . Your example logic in OB100 does as such works as followed: SET // "set" RLO to "1" SM 125.4 // "set" M 125.4 to "1" (since RLO is "1") R M 125.2 // "reset" M 125.2 to "0" (since RLO is "1") S M 125.3 // "set" M 125.3 to "1" (since RLO is "1") Using "SET", "CLEAR" and "="it could also be written like this: SET // "set" RLO to "1" =M 125.4 // "assign" RLO status to M 125.4 (e.g. M 125.4 ="1") = M 125.3 // "assign" RLO status to M 125.3 (e.g. M 125.3 ="1") CLEAR // "reset" RLO to "0" =M 125.2 // "assign" RLO status to M 125.2 (e.g. M 125.2 ="0") I hope this helps |
Cheers |
|
This contribution was helpful to7 thankful Users |
Follow us on