ÀÛ¼ºÀÚ : À¥°ü¸®ÀÚ |
2006-07-29 ¿ÀÀü 9:26:37 Á¶È¸¼ö : 7834¹ø |
Á¦¸ñ : AB-PLC[Masked Comparison for Equal]-[MEQ]
|
[MEQ]´Â Masked Comparison for Equal ÀÇ ¾à¾î´Ù
Source [B3:16]ÀÇ µ¥ÀÌÅÍ¿¡ Mask µ¥ÀÌÅÍ Hex [00FF] ÇÕ¼ºÇÑ µ¥ÀÌÅ͸¦ Compare µ¥ÀÌÅÍ¿Í ºñ±³Çؼ °°À¸¸é [O:2/0] Coil On
´Ù½Ã ¼³¸íÇÏ¸é ¾Æ·¡¿Í °°´Ù.
SOURCE - [ 0 0 0 0 | 0 0 1 1 | 0 0 0 1 | 1 0 1 1 ] MASK - [ 0 0 0 0 | 0 0 0 0 | 1 1 1 1 | 1 1 1 1 ] COMPARE-[ 0 0 0 0 | 1 1 0 1 | 0 0 0 1 | 1 0 1 1 ]
[-¿øº»±Û-]
The MEQ instruction is used to compare data at a souce address with data at a compare address. Use of this instruction allows portions of the data to be masked by a separate word.
The symbol for the Masked Comparison for Equal Instruction command is illustrated above. The MEQ command [MEQ] is placed on the left side of the rung to determine if a rung will be true or false for an output command. There are three parameters to enter, Source, Mask, and Compare:
¢Á Source - the address of the value you want to compare. ¢ÁMask - the address of the mask through which the instruction moves data. The mask can be hexadecimal value. ¢ÁCompare - an integer value or the address of the reference.
If the 16 bits of data at the source address are equal to the 16 bits of data at the compare address (less masked bits), the instruction is true. The instruction becomes false as soon as it detects a mismatch. Bits in the mask word mask data when reset; they pass data when set.
|
|
Add_File-1 : MEQ.gif( 2.5 KB )
|
|
ÀÌÀü±Û º¸±â : AB-PLC[Limit Test]-[LIM]
´ÙÀ½±Û º¸±â : AB-PLC[Equal Instruction]-[EQU]
|