Download Omron C200HS User's Manual
Transcript
Section 5-17 Data Comparison Example The following example shows the comparisons made and the results provided for BCMP(68). Here, the comparison is made during each cycle when 00000 is ON. 00000 BCMP(68) Address Instruction 00000 00001 LD BCMP(68) 001 HR 10 Operands 00000 HR 05 HR HR CD 001 001 Lower limits 0210 HR 10 HR 12 HR 14 HR 16 HR 18 HR 20 HR 22 HR 24 HR 26 HR 28 HR 30 HR 32 HR 34 HR 36 HR 38 HR 40 Compare data in IR 001 (which contains 0210) with the given ranges. Upper limits 0000 0101 0201 0301 0401 0501 0601 0701 0801 0901 1001 1101 1201 1301 1401 1501 HR 11 HR 13 HR 15 HR 17 HR 19 HR 21 HR 23 HR 25 HR 27 HR 29 HR 31 HR 33 HR 35 HR 37 HR 39 HR 41 001 10 05 R: HR 05 0100 0200 0300 0400 0500 0600 0700 0800 0900 1000 1100 1200 1300 1400 1500 1600 HR 0500 HR 0501 HR 0502 HR 0503 HR 0504 HR 0505 HR 0506 HR 0507 HR 0508 HR 0509 HR 0510 HR 0511 HR 0512 HR 0513 HR 0514 HR 0515 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 5-17-5 TABLE COMPARE – TCMP(85) Operand Data Areas CD: Compare data Ladder Symbols IR, SR, AR, DM, HR, TC, LR, # TCMP(85) @TCMP(85) CD CD TB TB R R TB: First comparison table word IR, AR, DM, HR, TC, LR R: Result word IR, SR, AR, DM, HR, TC, LR Limitations TB and TB+15 must be in the same data area. Description When the execution condition is OFF, TCMP(85) is not executed. When the execution condition is ON, TCMP(85) compares CD to the content of TB, TB+1, TB+2, ..., and TB+15. If CD is equal to the content of any of these words, the corresponding bit in R is set, e.g., if the CD equals the content of TB, bit 00 is turned ON, if it equals that of TB+1, bit 01 is turned ON, etc. The rest of the bits in R will be turned OFF. Flags ER: The comparison table (i.e., TB through TB+15) exceeds the data area. Indirectly addressed DM word is non-existent. (Content of ∗DM word is not BCD, or the DM area boundary has been exceeded.) 175
Related documents
Emerson Universal-R Technical data
C200HX/HG/HE Manuel d`utilisation - Support
SYSMAC PROGRAMMABLE CONTROLLERS C200H (CPU01
Selectron LD-007 Programming instructions
sysmac cqm1 automate programmable manuel de
IDSC-C1DR/C1DT-AE ID Controller User's Manual
sysmac c200hx/c200hg/c200he automates programmables
Avaya Activity Reporter Client Version User's Manual
From C200H to CS1
Replacement Guide From CJ1M/CJ1G to CJ2M
ESET Mail Security for Microsoft Exchange Server
Using BIOS