7: BASIC INSTRUCTIONS
« FC4A MICROSMART USER’S MANUAL » 7-23
MCS and MCR (Master Control Set and Reset)
The MCS (master control set) instruction is usually used in combination with the MCR (master control reset) instruction.
The MCS instruction can also be used with the END instruction, instead of the MCR instruction.
When the input preceding the MCS instruction is off, the MCS is executed so that all inputs to the portion between the
MCS and the MCR are forced off. When the input preceding the MCS instruction is on, the MCS is not executed so that
the program following it is executed according to the actual input statuses.
When the input condition to the MCS instruction is off and the MCS is executed, other instructions between the MCS and
MCR are executed as follows:
Input conditions cannot be set for the MCR instruction.
More than one MCS instruction can be used with one MCR instruction.
Corresponding MCS/MCR instructions cannot be nested within another pair of corresponding MCS/MCR instructions.
Instruction Status
SOTU Rising edges (ON pulses) are not detected.
SOTD Falling edges (OFF pulses) are not detected.
OUT All are turned off.
OUTN All are turned on.
SET and RST All are held in current status.
TML, TIM, TMH, and TMS
Current values are reset to zero.
Timeout statuses are turned off.
CNT, CDP, and CUD
Current values are held.
Pulse inputs are turned off.
Countout statuses are turned off.
SFR and SFRN
Shift register bit statuses are held.
Pulse inputs are turned off.
The output from the last bit is turned off.