SRT: Sorting an Array in Place When the Scan Has to Keep Running

SRT operand block with Array SortBuf element 0, Dim to vary 0, Control SortCtrl, Length 51, Position 0, beside the CONTROL structure showing EN, DN and ER

The Array operand on an SRT accepts SINT, INT, DINT and REAL, and 1756-RM018A prints no fifth entry. No structures, no strings, no array of a user-defined type — so on a 1756-L83E or a 5069-L330ERM alike, the instruction that sorts an array cannot sort records, and every design built on it deals with that … Read more

COP and CPS Instructions on a ControlLogix: Which One Copies What

Worked byte arithmetic for a COP with Length 20 from a five-element SINT array into a ten-element DINT array: the source drawn as five one-byte cells, the destination as ten four-byte cells, then the three limits stacked as requested 80 bytes, destination tag 40 bytes and source tag 5 bytes, with the five-byte answer boxed

COP and CPS Instructions on a ControlLogix: Which One Copies What A COP with a Length of 20 moved five bytes. The source was Packer_Raw, a SINT[5]; the destination was Packer_Scaled, a DINT[10]; the rung went true on every scan of a 1756-L71 and nothing faulted, nothing latched, nothing appeared in the Minor Faults tab. … Read more

Advertisement