Download View / the Complete Manual
Transcript
4--50 Message Display Mode a:\msg15.prj SP0 (Setup Parameter rung here) Load Channel Data Values SP1 LD V40400 Load the contents of V40400 (X0 to X17) into the accumulator. OUT V2200 Channel 1 data is being sent when X15 and X14 are off. The Out instruction places the data in V2200, storing the raw data for channel 1. OUT V2201 Channel 2 data is being sent when X15 is off and X14 is on. The Out instruction places the data in V2201, storing the raw data for channel 2. OUT V2202 Channel 3 data is being sent when X15 is on and X14 is off. The Out instruction places the data in V2202, storing the raw data for channel 3. OUT V2203 Channel 4 data is being sent when X15 and and X14 are off. The Out instruction places the data in V2203, storing the raw data for channel 4. Ch 1 X15 X14 Ch 2 X15 X14 Ch 3 X15 X14 Ch 4 X15 X14 Initialize Variables SP0 Message Display Mode First scan only LD K0 Load the constant K0 into the accumulator. OUT V2210 Initialize the character pointer to zero. This points to one of 16 characters on the current row. OUT V2211 Initialize the row pointer to zero. This points to one of 4 rows of characters on the display. LDA O2200 Load the octal address 2200 into the accumulator. V2200 is the location of the raw analog data. OUT V2212 Initialize the raw analog value pointer at V2212 to point to the first analog value at V2200. LDA O2204 Load the octal address 2204 into the accumulator. V2204 is the location of the processed analog data. OUT V2213 Initialize the raw analog value pointer at V2213 to point to the first analog value at V2204. LDA O2100 Load the octal address 2100 into the accumulator. V2100 is the beginning of display text data. OUT V2214 Initialize the display text pointer at V2214 to point to the first text display location at V2100.