Skip to content
grizeldi edited this page Sep 20, 2016 · 1 revision

Actions

Here you can get an overview of what actions are available in this library.

List

Z21ActionGetLocoInfo

Requests current loco information from the z21. As a response z21 fires a Z21BroadcastLanXLocoInfo.

Z21ActionGetSerialNumber

Requests z21's serial number. Also used internally to keep this program in z21's active client list. As a response z21 fires a Z21ResponseGetSerialNumber.

Z21ActionLanLogoff

Sent from Z21 class' shutdown() method. Should not be used otherwise. Removes this program from z21's active client list. No response from z21.

Z21ActionLanRailcomGetdata

//TODO

Z21ActionLanXCVPomReadByte

Reads a byte from CV. Used in POM mode (Program On Main). As a response z21 reads out the CV and fires a Z21ResponseLanXCVResult.

Z21ActionLanXCVPomWriteByte

Writes into a CV in byte mode. Used in POM mode (Program On Main).

Z21ActionLanXCVRead

Reads a byte from CV. Used on programming track. As a response z21 reads out the CV and fires a Z21ResponseLanXCVResult.

Z21ActionLanXCVWrite

Writes into a CV in byte mode. Used on programming track.

Z21ActionLanXGetFirmwareVersion

Requests z21's serial number. I don't know why do we even have this. As a response z21 fires Z21ResponseLanXGetFirmwareVersion.

Z21ActionLanXTrackPowerOff

Turns off track power. As a response z21 fires Z21BroadcastLanXTrackPowerOff.

Z21ActionLanXTrackPowerOn

Turns on track power. As a response z21 fires Z21BroadcastLanXTrackPowerOn.

Z21ActionSetLocoDrive

Sets loco speed and direction. As a response z21 fires a Z21BroadcastLanXLocoInfo to subscribed listeners (you subscirbe by sending a Z21ActionGetLocoInfo).

Z21ActionSetLocoFunction

Sets loco's function. As a response z21 fires a Z21BroadcastLanXLocoInfo to subscribed listeners (you subscirbe by sending a Z21ActionGetLocoInfo).