|
Logic Sample Program |
|
|
DATA_D that corresponds to the bit positions (#n) of the conversion source register, DATA_S (integer 32-bit data) is created. An decode process can be actualized with much fewer steps than creating DATA_D with the Compare instruction (EQ) and the Movement instruction (M0V).
|
|
|
|
In the case of creating a flag that corresponds to a control operation etc. in a sequencer program according to the numeric values input via the keypad or Touch Panel, if the coil is turned ON with data value and the Compare formula, the Compare formula will increase by the number of needed flags. Using each bit, DECO_D.X[0-31] of DATA_D converted with the decode instruction above enables you to create Compare bits from 0 to 31 with 2 rungs.
|
Download a sample program file and detailed description.
|
|
|