Hi,
Can anyone offer me some Ti assitance?
CR230 CR240 CR 300
|----) (---*---)/(--------------------------------( )--
| |
| |
| CR300 |
|----) (---
|
|CR 300 ______ CR240
|----) (------|SF |--------------------------( )---
| |P |
| |C610 |
| |______|
Special Function 7
Compare two numbers
Start address: C610 next address: C615
Error output?......Y
Error output designator:,,,,,CR450
Location of first word (A) to be compared:……..V100
Location of second word (B) to be compared:....C130
Compare functions
Permitted:
1=A less than B
Etc
5=A Greater than B
Compare function requested:…….5
Status designator:…………………CR280
Chain special function…………….Y
My understanding is that CR230 pulses on and maintains itself through CR300.
When the SF is completed, CR240 energises and unlatches CR300.
My query is the status of the CR280 flag when the function is completed, for the remainder of the scan and the next scan?
From my experiment, in standard AB ladder code, it would seem that my following conversion is incorrect. Can anyone enlighten me? Do I need to use a latch bit for the CR280?
CR280 is used here but will never be on!
|---) (--------
|
|
| CR230 CR240 CR 300
|----) (---*---)/(--------------------------------( )--
| |
| |
| CR300 |
|----) (----
|
|CR 300 _________ CR280
|----) (------|Grt |--------------------( )---
| |A:V100 |
| |B:C130 |
| |__________|
|
|CR 300 CR240
|----) (--------------------------------------( )-----
Sorry for the poor ladder insert, I did look for some tips on this.
Thanks
Ben
Can anyone offer me some Ti assitance?
CR230 CR240 CR 300
|----) (---*---)/(--------------------------------( )--
| |
| |
| CR300 |
|----) (---
|
|CR 300 ______ CR240
|----) (------|SF |--------------------------( )---
| |P |
| |C610 |
| |______|
Special Function 7
Compare two numbers
Start address: C610 next address: C615
Error output?......Y
Error output designator:,,,,,CR450
Location of first word (A) to be compared:……..V100
Location of second word (B) to be compared:....C130
Compare functions
Permitted:
1=A less than B
Etc
5=A Greater than B
Compare function requested:…….5
Status designator:…………………CR280
Chain special function…………….Y
My understanding is that CR230 pulses on and maintains itself through CR300.
When the SF is completed, CR240 energises and unlatches CR300.
My query is the status of the CR280 flag when the function is completed, for the remainder of the scan and the next scan?
From my experiment, in standard AB ladder code, it would seem that my following conversion is incorrect. Can anyone enlighten me? Do I need to use a latch bit for the CR280?
CR280 is used here but will never be on!
|---) (--------
|
|
| CR230 CR240 CR 300
|----) (---*---)/(--------------------------------( )--
| |
| |
| CR300 |
|----) (----
|
|CR 300 _________ CR280
|----) (------|Grt |--------------------( )---
| |A:V100 |
| |B:C130 |
| |__________|
|
|CR 300 CR240
|----) (--------------------------------------( )-----
Sorry for the poor ladder insert, I did look for some tips on this.
Thanks
Ben