WinLpt (WndLpt)

Intro

Application

Vis Plugin

Screenshots

History

Downloads

Lpt Tools

SDK

Script

Basic syntax

All Instructions

Extended syntax

Additional rules

Hardware

LED-to-LPT connection

Panel map

Arduino

Lpt Tools

LPT Buttons

Stroboscope

EasyDrive

LptPort

Other

Mark As Good

Unmark bad clusters

CMD REMAP

Remap LPT pins outputs.

Syntax

cmd remap [number] [number] ... [number]

Parameters

number
  • Decimal number from 1 to 12.

Remarks

Default 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
excrm.mlh_g.gif

Mapping circuit

cmd remap 1 2 3 4 5 6 7 8 9 10 11 12
excrm.default.gif

Example '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
excrm1.mlh_g.gif

Mapping circuit

cmd remap 12 11 10 9 8 7 6 5 4 3 2 1
excrm.reverse.gif

Example '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
excrm2.mlh_g.gif

Mapping circuit

cmd remap 1 2 3 4 5 7 6 8 9 10 11 12
excrm.swap6x7.gif

Example '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
excrm3.mlh_g.gif

Mapping circuit

cmd remap 7 8 9 10 11 12 1 2 3 4 5 6
excrm.shift6x.gif