CMD REMAPRemap LPT pins outputs.Syntaxcmd remap [number] [number] ... [number] Parametersnumber
RemarksDefault setting is:cmd remap 1 2 3 4 5 6 7 8 9 10 11 12 Examples: Reverse order: cmd remap 12 11 10 9 8 7 6 5 4 3 2 1 Swap bits 6 and 7: cmd remap 1 2 3 4 5 7 6 8 9 10 11 12 Shift by 6 bits: cmd remap 7 8 9 10 11 12 1 2 3 4 5 6 Example 'Default order'sleeps 500 ; Set sleeps = 500 ms ; Remap to default settings cmd remap 1 2 3 4 5 6 7 8 9 10 11 12 CYCLE: ; Define Label ; Run sunlight 100000000000 010000000000 001000000000 000100000000 000010000000 000001000000 000000100000 000000010000 000000001000 000000000100 000000000010 000000000001 off ; Set all outputs to LOW state sleep 1000 ; Sleep for 1000 ms goto CYCLE ; Goto Label CYCLE Mapping circuitcmd remap 1 2 3 4 5 6 7 8 9 10 11 12Example 'Reverse order'sleeps 500 ; Set sleeps = 500 ms ; Remap to reversed order cmd remap 12 11 10 9 8 7 6 5 4 3 2 1 CYCLE: ; Define Label ; Run sunlight 100000000000 010000000000 001000000000 000100000000 000010000000 000001000000 000000100000 000000010000 000000001000 000000000100 000000000010 000000000001 off ; Set all outputs to LOW state sleep 1000 ; Sleep for 1000 ms goto CYCLE ; Goto Label CYCLE Mapping circuitcmd remap 12 11 10 9 8 7 6 5 4 3 2 1Example 'Swap bits 6 and 7'sleeps 500 ; Set sleeps = 500 ms ; Remap to swap bits 6 and 7 cmd remap 1 2 3 4 5 7 6 8 9 10 11 12 CYCLE: ; Define Label ; Run sunlight 100000000000 010000000000 001000000000 000100000000 000010000000 000001000000 000000100000 000000010000 000000001000 000000000100 000000000010 000000000001 off ; Set all outputs to LOW state sleep 1000 ; Sleep for 1000 ms goto CYCLE ; Goto Label CYCLE Mapping circuitcmd remap 1 2 3 4 5 7 6 8 9 10 11 12Example 'Shift by 6 bits'sleeps 500 ; Set sleeps = 500 ms ; Remap to shift by 6 bits cmd remap 7 8 9 10 11 12 1 2 3 4 5 6 CYCLE: ; Define Label ; Run sunlight 100000000000 010000000000 001000000000 000100000000 000010000000 000001000000 000000100000 000000010000 000000001000 000000000100 000000000010 000000000001 off ; Set all outputs to LOW state sleep 1000 ; Sleep for 1000 ms goto CYCLE ; Goto Label CYCLE Mapping circuitcmd remap 7 8 9 10 11 12 1 2 3 4 5 6
|