Vickie,
Your problem is doubled by the fact that your SLC500 Fixed Unit does not have the following instructions: FFL, FFU, and SQL. It does have the Sequencer Output (SQO) and the Sequencer Compare (SQC). However the only way you can use these is if you first manually load values (numbers) into memory locations that represent the sequencer.
For your Simple Simon game, you need the Sequencer Load operation to be done by the PLC. Because the SQL instruction is not availabe on the SLC500-L20 series, you will have to set up a counter that counts each time the PLC "moves", then use the counter value as an index to determine where the next random number (color) is stored. Then when ready to "play back" (unload) the Sequencer, you can use the SQO instruction to step through the sequence. It may be just as easy to use Count Up and Count Down Counters for both Sequence Load and Sequence Unload.
PS: The Error light should be triggered when the Player makes a mistake and does not follow the sequence correctly. Five seconds after an error (blinking red light), an automatic Reset is performed.
Your problem is doubled by the fact that your SLC500 Fixed Unit does not have the following instructions: FFL, FFU, and SQL. It does have the Sequencer Output (SQO) and the Sequencer Compare (SQC). However the only way you can use these is if you first manually load values (numbers) into memory locations that represent the sequencer.
For your Simple Simon game, you need the Sequencer Load operation to be done by the PLC. Because the SQL instruction is not availabe on the SLC500-L20 series, you will have to set up a counter that counts each time the PLC "moves", then use the counter value as an index to determine where the next random number (color) is stored. Then when ready to "play back" (unload) the Sequencer, you can use the SQO instruction to step through the sequence. It may be just as easy to use Count Up and Count Down Counters for both Sequence Load and Sequence Unload.
PS: The Error light should be triggered when the Player makes a mistake and does not follow the sequence correctly. Five seconds after an error (blinking red light), an automatic Reset is performed.
Last edited: