Scale-N

Scale-N
Arduino
Componenten
Rollend Materieel
Naslag
Onderdelen
Wissels
Basis Electronica
Symbols Electronica
Programming Arduino
AKS
DCC++
DR5000













































Engine Decoder Programming Commands

PROGRAMMING-MAIN TRACK

WRITE CV BYTE TO ENGINE DECODER ON MAIN TRACK
Writes, without any verification, a Configuration Variable BYTE to the decoder of an engine on the main operations track.

Write CV BYTE Format is: < w CAB CV VALUE >
CAB: The short (1-127) or long (128-10293) address of the engine decoder
CV: The number of the Configuration Variable memory location in the decoder to write to (1-1024)
VALUE: The value to be written to the Configuration Variable memory location (0-255)
Returns: NONE


WRITE CV BIT TO ENGINE DECODER ON MAIN TRACK
Writes, without any verification, a single bit within a Configuration Variable BIT to the decoder of an engine on the main operations track.

Write CV BIT Format is: < b CAB CV BIT VALUE >
CAB: the short (1-127) or long (128-10293) address of the engine decoder
CV: the number of the Configuration Variable memory location in the decoder to write to (1-1024)
BIT: the bit number of the Configurarion Variable regsiter to write (0-7)
VALUE: the value of the bit to be written (0-1)
Returns: NONE



PROGRAMMING-PROGRAMMING TRACK

WRITE CV BYTE TO ENGINE DECODER ON PROGRAMMING TRACK

Writes, and then verifies, a Configuration Variable BYTE to the decoder of an engine on the programming track

Write CV BYTE Format is: < W CV VALUE CALLBACKNUM CALLBACKSUB >
CV: The number of the Configuration Variable memory location in the decoder to write to (1-1024 ).
VALUE: The value to be written to the Configuration Variable memory location (0-255).
CALLBACKNUM: An arbitrary integer (0-32767) that is ignored by the Base Station and is simply echoed back in the output - useful for external programs that call this function.
CALLBACKSUB: a second arbitrary integer (0-32767) that is ignored by the Base Station and is simply echoed back in the output - useful for external programs (e.g. DCC++ Interface) that call this function.
Returns: < r CALLBACKNUM|CALLBACKSUB|CV Value >
CV VALUE: Is a number from 0-255 as read from the requested CV, or -1 if verification read fails.

WRITE CV BIT TO ENGINE DECODER ON PROGRAMMING TRACK

Writes, and then verifies, a Configuration Variable BIT to the decoder of an engine on the programming track

Write CV BIT Format is: < B CV BIT VALUE CALLBACKNUM CALLBACKSUB >
CV: The number of the Configuration Variable memory location in the decoder to write to (1-1024).
BIT: The bit number of the Configuration Variable memory location to write (0-7).
VALUE: The value of the bit to be written (0-1).
CALLBACKNUM: An arbitrary integer (0-32767) that is ignored by the Base Station and is simply echoed back in the output - useful for external programs that call this function.
CALLBACKSUB: A second arbitrary integer (0-32767) that is ignored by the Base Station and is simply echoed back in the output - useful for external programs (e.g. DCC++ Interface) that call this function.
Returns: < r CALLBACKNUM|CALLBACKSUB|CV BIT VALUE>
CV VALUE is a number from 0-1 as read from the requested CV bit, or -1 if verification read fails.



READ CONFIGURATION VARIABLE BYTE FROM ENGINE DECODER ON PROGRAMMING TRACK

Reads a Configuration Variable from the decoder of an engine on the programming track.

Read CV BYTE Format is:< R CV CALLBACKNUM CALLBACKSUB >
CV: The number of the Configuration Variable memory location in the decoder to read from (1-1024).
CALLBACKNUM: An arbitrary integer (0-32767) that is ignored by the Base Station and is simply echoed back in the output - useful for external programs that call this function.
CALLBACKSUB: A second arbitrary integer (0-32767) that is ignored by the Base Station and is simply echoed back in the output - useful for external programs (e.g. DCC++ Interface) that call this function.
Returns: **< r CALLBACKNUM|CALLBACKSUB|CV VALUE>
CV VALUE is a number from 0-255 as read from the requested CV, or -1 if read could not be verified.