Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
DescriptionScript fileProject File for netSCRIPT debugger

Getting trained the basics



Explains basics of how to deal with Lua in generalbasics.luabasics.nxsprj
Shows using the embedded CRC generatorcrc.luaCRC.nxsprj
Shows access to the devices LEDsledflash.lualedflash.nxsprj

Getting trained on UART functions



Echoing back any UART char received to the originatornetscrpt.luaecho.nxsprj
Sending "Hello World" over serial linehello.luahello.nxsprj
Eliza game implementationeliza.luaeliza.nxsprj
Write a given time as char string to UART and countstime.luatime.nxsprj
Using the UART in block modeblkmode.luablockmode.nxsprj
Modbus RTU Master protocol implementationmbrtumst.luaModubs RTU Master.nxsprj
Modbus RTU Slave protocol implementationmbrtuslv.luaModbus RTU Slave.nxsprj
Allen Bradley DF1 protocol master implementationdf1.luaDF1 Master.nxsprj

Getting trained on IO access functions



Increments a simple counter in the input area of an IO imagebusiocnt.luaBusIOCount.nxsprj
Template for UART block mode and transfer to IO imagetemplate.luaTEMPLATE BLOCK.nxsprj
Template for UART char mode and transfer to IO imagetemplate.luaTEMPLATE CHAR.nxsprj