CPM2A_OPERATION MANUAL (W352-E1-3) (986749), страница 22
Текст из файла (страница 22)
Refer to4-4-21 Binary Data Modification for details.114SectionProgramming Console Operations4-4b) The Up or Down Arrow Key can be pressed to display the status ofthe previous or next word’s bits.3. Press the CLR Key to end binary monitoring and return to the normal monitoring display.CLRc01000004-4-15 Three-Word MonitorThis operation is used to monitor the status of three consecutive words. It ispossible in any mode.RUNOK1, 2, 3...MONITOROKPROGRAMOK1. Monitor the status of the first of the three words according to the proceduredescribed in 4-4-12 Bit, Digit, Word Monitor.If 2 or more words are being monitored, the desired first word should be leftmost on the display.c20089AB(Word monitor)2. Press the EXT Key to begin 3-word monitoring. The status of the selectedword and the next two words will be displayed, as shown below.
In this case,DM 0000 was selected.EXTc202 c201 c2000123 4567 89ABThe Up and Down Arrow Keys can be used to shift one address up or down.The status of the displayed words can be changed at this point. Refer to4-4-18 Three-word Data Modification.The display can be changed to display ASCII text, which is useful whenthree consecutive words containing an ASCII message are displayed. Referto 4-4-26 Hex-ASCII Display Change.3. Press the CLR Key to end 3-word monitoring and return to the normal monitoring display. The rightmost word on the 3-word monitor display will bemonitored.CLRc20089ABNote The operating mode can be changed without altering the current monitor displayby holding down the SHIFT Key and then changing the operating mode.4-4-16 Signed Decimal MonitorThis operation converts the contents of the specified word from signed hexadecimal (two’s complement format) to signed decimal for display.
The operation can be executed while using I/O monitoring, multiple address monitoringor 3-word monitoring.RUNOK1, 2, 3...MONITOROKPROGRAMOK1. Monitor the word that is to be used for decimal monitor with sign. During multiple address monitoring, the leftmost word will be converted.(Multiple address monitor)c200 cL0020000FFF0 0000^ OFF115SectionProgramming Console Operations4-42. Press the SHIFT+TR Keys to display the leftmost word as signed decimal.SHIFTTRc200Ć00016At this point, the contents of the displayed word can be changed with asigned-decimal input. Refer to 4-4-22 Signed Decimal Data Modification.3.
Press the CLR Key or the SHIFT+TR Keys to end the unsigned decimal display and return to normal monitoring.CLRc200 cL0020000FFF0 0000^ OFF4-4-17 Unsigned Decimal MonitorThis operation is used to convert hexadecimal data in a word to unsigneddecimal for display. The operation can be executed while using I/O monitoring, multiple address monitoring or 3-word monitoring.RUNMONITOROK1, 2, 3...OKPROGRAMOK1. Monitor the word that is to be used for decimal monitor without sign. Duringmultiple address monitoring, the leftmost word will be converted.Multiple address monitoringc200 cL0020000FFF0 0000^ OFF2.
Press the SHIFT+TR+NOT Keys to display the leftmost word as unsigneddecimal.SHIFTTRNOTc20065520At this point, the contents of the displayed word can be changed with an unsigned-decimal input. Refer to 4-4-23 Unsigned Decimal Data Modification.3. Press the CLR Key or the SHIFT+TR Keys to end the unsigned decimal display and return to normal monitoring.CLRc200 cL0020000FFF0 0000^ OFF4-4-18 Three-Word Data ModificationThis operation is used to change the contents of one or more of the 3 consecutive words displayed in the Three-Word Monitor operation. It is possiblein MONITOR or PROGRAM mode only.RUNNoMONITOROK! CautionBefore changing the contents of I/O memory, be sure that the changes will notcause equipment to operate unexpectedly or dangerously.
In particular, takecare when changing the status of output bits. The PC continues to refresh I/Obits even if the PC is in PROGRAM mode, so devices connected to output pointson the CPU Unit, Expansion Units, or Expansion I/O Units may operate unexpectedly.1, 2, 3...1. Monitor the status of the desired words according to the procedure described 4-4-15 Three-Word Monitor.(Three-word monitor)116PROGRAMOKD0002D0001D00000123 4567 89ABSectionProgramming Console Operations4-42. Press the CHG Key to begin 3-word data modification. The cursor will appear next to the contents of the leftmost word.CHGD00023CH CHG?00123 4567 89AB3. Input the new value for the leftmost word on the display and press the CHGKey if more changes will be made.(Input the new value and press the WRITE Key to write the changes inmemory if no more changes will be made.)B1CHGD00023CH CHG?0001 4567 89AB4.
Input the new value for the middle word on the display and press the CHGKey if the rightmost word will be changed. Input the new value and press theWRITE Key to write the changes in memory if the rightmost word will not bechanged. (In this case, it will not.)C2D3E4WRITED0002D0001D00000001 0234 89ABNote If the CLR Key is pressed before the WRITE Key, the operation will be cancelledand the 3-word monitor display will return without any changes in data memory.4-4-19 Changing Timer, Counter SVThere are two operations that can be used to change the SV of a timer orcounter.
They are possible in MONITOR or PROGRAM mode only. In MONITOR mode, the SV can be changed while the program is being executed.RUNMONITORNoOKPROGRAMOKThe timer or counter SV can be changed either by inputting a new value orby incrementing or decrementing the current SV.This operation can be used to input a new SV constant, as well as to change anSV from a constant to a word address designation and vice versa. The followingexamples show how to input a new SV constant and how to change the SV froma constant to an address.Inputting a New SVConstant1, 2, 3...1.
Press the CLR Key to bring up the initial display.2. Display the desired timer or counter.TIMB1SRCH00201SRCHTIM0013. Press the Down Arrow Key and then the CHG Key.↓CHG00201DATA?T001 #0134 #????4. At this point a new SV constant can be input or the SV constant can bechanged to a word address designationa) To input a new SV constant, input the constant and press the WRITEKey.B1C2E4WRITE00201 TIM DATA#0124b) To change to a word address designation, input the word address andpress the WRITE Key.SHIFTCHAR*DMHRB1A0WRITE00201 TIM DATAHR10117SectionProgramming Console OperationsIncrementing andDecrementing a Constant1, 2, 3...4-4This operation can be used to increment and decrement an SV constant.
It ispossible only when the SV has been entered as a constant.1. Press the CLR Key to bring up the initial display.2. Display the desired timer or counter.TIMSRCH00201SRCHTIM0003. Press the Down Arrow, CHG, and then the EXT Key.↓CHGEXT00201DATA ? U/DT000 #0123 #0123The constant on the left is the old SV and the constant on the right will become the new SV constant in step 5.4.
Press the Up and Down Arrow Keys to increment and decrement the constant on the right. (In this case the SV is incremented once.)↓00201DATA ? U/DT000 #0123 #01245. Press the CLR Key twice to change the timer’s SV to the new value.CLRCLR00201 TIM DATA#01244-4-20 Hexadecimal, BCD Data ModificationThis operation is used to change the BCD or hexadecimal value of a wordbeing monitored using the procedure described in 4-4-12 Bit, Digit, WordMonitor.
It is possible in MONITOR or PROGRAM mode only.RUNMONITORNoOKPROGRAMOKWords SR 253 to SR 255 cannot be changed.! CautionBefore changing the contents of I/O memory, be sure that the changes will notcause equipment to operate unexpectedly or dangerously. In particular, takecare when changing the status of output bits. The PC continues to refresh I/Obits even if the PC is in PROGRAM mode, so devices connected to output pointson the CPU Unit, Expansion Units, or Expansion I/O Units may operate unexpectedly.1, 2, 3...1.
Monitor the status of the desired word according to the procedure describedin 4-4-12 Bit, Digit, Word Monitor. If two or more words are being monitored,the desired word should be leftmost on the display.D00000119(Word monitor)2. Press the CHG Key to begin hexadecimal, BCD data modification.CHGPRES VAL?D0000 0119????3. Input the new PV and press the WRITE Key to change the PV.The operation will end and the normal monitoring display will return whenthe WRITE Key is pressed.C1182A0A0WRITED00000200SectionProgramming Console Operations4-44-4-21 Binary Data ModificationThis operation is used to change the status of a word’s bits when the word ismonitored using the procedure described in 4-4-14 Binary Monitor.
It is possible in MONITOR or PROGRAM mode only.RUNMONITORNoOKPROGRAMOKBits SR 25300 to SR 25507 and timer/counter flags cannot be changed.! CautionBefore changing the contents of I/O memory, be sure that the changes will notcause equipment to operate unexpectedly or dangerously. In particular, takecare when changing the status of output bits. The PC continues to refresh I/Obits even if the PC is in PROGRAM mode, so devices connected to output pointson the CPU Unit, Expansion Units, or Expansion I/O Units may operate unexpectedly.1, 2, 3...1.
Monitor the status of the desired word according to the procedure described4-4-14 Binary Monitor.c010 MONTR1000010101010101(BInary monitor)Bit 15Bit 002. Press the CHG Key to begin binary data modification.CHGc010CHG?1000010101010101A flashing cursor will appear over bit 15. The cursor indicates which bit canbe changed.3. Three sets of keys are used to move the cursor and change bit status:a) Use the Up and Down Arrow Keys to move the cursor to the left and right.↓↓c010CHG?1000010101010101b) Use the 1 and 0 Keys to change a bit’s status to on or off.