-------------------------------------------- CONPROSYS Script sample programs No. 005 -------------------------------------------- Process name: 7-segment Display (Two Digits) Date of creation: February 17, 2016 Processing content: Use 8 bits of digital output, DO0 to DO7 to drive a 7-segment display (two digits). [Signals] DO0 to DO7 - 7-segment display (two digits) output (8 bits) [Operation] 1. Output the tag value to a two digits (00 to 99) 7-segment display. [Description] The sample program has a main task (TASK9) and a subroutine (SUB9). To use this sample program, restores this sample program to the M2M controller and names the task number and the subroutine number. If the subroutine is renamed to a number that is not SUB9, change the calling number to the new one. Convert TAG90 value to the display output data and set it to LTAG90, then call SUB9 subroutine. Subroutine uses the 8-bit output data to drive the two-digit 7-segment display. The subroutine uses LTAG99 as a working tag.