-------------------------------------------- CONPROSYS Script sample programs No. 006 -------------------------------------------- Process name: 7-segment Display (Four digits with Strobe) Date of creation: February 17, 2016 Processing content: Use 8 bits of digital output, DO0 to DO7 to drive a strobe type 7-segment display (four digits). [Signals] DO0 to DO3 - output of numerical part (4 bits) of a strobe type 7-segment display. DO4 to DO7 - output of strobe (4 bits) of a strobe type 7-segment display. [Operation] 1. Output the tag value to a strobe type four digit (0 to 9999) 7-segment display. [Despription] 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 the TAG90 value to a strobe type 7-segment display data and set it to LTAG90, then call SUB9 subroutine. Subroutine outputs the data, 4 bits numdrical part and 4 bits strobe part, to a strobe type 7-segment display. The subroutine uses LTAG99 as a working tag.