12.07.2015 Views

Logix5000 Controllers General Instructions - SLAC Confluence

Logix5000 Controllers General Instructions - SLAC Confluence

Logix5000 Controllers General Instructions - SLAC Confluence

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Array (File)/Misc. <strong>Instructions</strong> (FAL, FSC, COP, CPS, FLL, AVE, SRT, STD, SIZE) 363Example 5:This example initializes an array of timer structures. When enabled,the MOV instructions initialize the .PRE and .ACC values of the firstarray_timer element. When enabled, the COP instruction copies acontiguous block of bytes, starting at array_timer[0]. The length isnine timer structures.array_timer[0]array_timer[1]array_timer[2]array_timer[3]First the instruction copies timer[0]values to timer[1]Then the instruction copies timer[1]values to timer[2]Then the instruction copies timer[2]values to timer[3]Then the instruction copies timer[3]values to timer[4]array_timer[4]•••array_timer[9]Finally, the instruction copiestimer[9] values to timer[10]array_timer[10]Relay LadderStructured TextIF S:FS THENarray_timer[0].pre := 500;array_timer[0].acc := 0;COP(array_timer[0],array_timer[1],10);END_IF;Publication 1756-RM003I-EN-P - January 2007

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!