Alle (!!) anderen hebben Lenz gevolgd in hun 0-1 waanzinsstrijd, waardoor module adres 1, poortnummer 0 is gebruikt als "wissel 1" ( terwijl dit volgens de NMRA specs wissel 5 zou zijn )
Een typisch Lenz „trekje“: iedereen in de Elektro-/Low-level programmeerwereld benoemt bits in een byte van 0-7…. Zo niet Lenz, daar is het 1-8.
( terwijl dit volgens de NMRA specs wissel 5 zou zijn )
Lenz gerelateerd aan Beckhoff? Dat is ook zo ongeveer de enige die zijn PLC I/O 1-8 nummert ...
XpressNet.SetTrntPos( pointAddress - 1, state, 1 ) ;
void notifyXNetTrnt( uint16_t address, uint8_t Pos ){ address ++ ;..
address >>= 2 ;
Er zit dus blijkbaar informatie in bit 0 en 1, die je niet nodig heb. Zal vast ook wel een goede rede hebben..
Data Byte1: AAAA AAAA : For a turnout accessory decoder, the address in Data Byte 1 is theturnout address divided by 4. For X-Bus V1 and X-bus V2 systems, the address has a range of 0 to63, which equals 6 bits. XpressNet based systems have the possibility to use all 8 bits for this groupaddress which provides a range for turnout address from 0.1023 (256 * 4 = 1024). For example, foraccessory decoders, when ADR =0x00, (turnout group 0) the information is about turnouts 0, 1, 2 or3 (accessory decoders are marked in the coding bits TT). Please note that XpressNet commandsuse addresses from 0 to 1023 while the operator interface commonly uses addresses from 1-1024.This difference needs to be considered in program development. For a feedback module, the address can be in the range of 0..127 (7 Bit) and is directly the addressof the module.