1/30/2012 7:24 PM | |
Joined: 2/16/2011 Last visit: 7/8/2024 Posts: 229 Rating:
|
Hello, See this..
Good Lock |
Gabriel de Oliveira |
|
1/30/2012 9:33 PM | |
Joined: 7/7/2010 Last visit: 9/10/2024 Posts: 15166 Rating:
|
Thanks Gabriel de Oliveira Unfortunately, the various set/reset, rising/falling edge detection functions are unavailable for SCL. It states, "For SCL: You must write code to replicate this function within your application.", for each of the items. It also does not describe how bits are turned on/off. In ladder logic, if I include a -( )- and do not have 'power flow' to the coil bit, it turns off that bit. In SCL, if I skip over logic that would ordinarily set a value, yet have no logic that resets the value, what state will it have at the end of the SCL function? This is quite unsettling as I have many string-handling functions that work so much better in SCL, yet, they often require edge triggering to activate pieces of logic, then SET or RESET status bits based on the results. I'm trying to convert some old ladder logic to SCL to take advantage of these capabilities. Anyone have sample code to replicate set/reset, rising/trailing edge detection, and can describe what happens as described above? |
science guy |
|
Follow us on