6.27. CCOP(Conditional Copy data) Conditional Copy
6.27. CCOP(Conditional Copy data): Conditional Copy
Symbol | |
Relay combination | |
Factor | sA: When Rung is activated, source relay to copy, or value to be filled with (const) sB: When Rung is activated, source relay to copy, or value to be filled with (const) dst: Destination relay len: Length relay (or Number). |
Description | Depends on Rung status, copy the values from sA or sB to dst as many as the number of len. If src is a number, sA/sB value will be filled as many as the number of len from dst. In this case, when the dst is bit type, if sA/sB number is 0, OFF or else ON will be filled. If sA/sB is relay, the data type of sA/sB and dst should match. For example, if sA/sB is bit, dst should be bit, if sA/sB is byte(B), dst should be byte(B), if sA/sB is word(W) then dst should be word(w) as well. If (sA/sB)+len is greater than the maximum number of sA/sB relay, or if dst+len is greater than the maximum number of dst relay, copy will only progress until the maximum number of relay. |
Usage example | Example for designated number of copy) CCOP(X2,R5,Y3,3): If Rung is activated, Y3=X2, Y4=X3, Y5=X4 If Rung is deactivated, Y3=R5, Y4=R6, Y5=R7 CCOP(1,0,Y3,3): If Rung is activated, Y3=ON, Y4=ON, Y5=ON If Rung is deactivated, Y3=OFF, Y4=OFF, Y5=OFF Reference) Please refer to COP command as the examples of factor usage is similar to COP command. |