# Start of Text: Address
STX		%1b\a

# End of Text: CRC 16 Reverse
ETX		%2b\c(1A001,ffff,0,0)
ETXREAD		%1b\l(8)(\L+)%2b\c(1A001,ffff,0,0)

# Coil Status 00001 to 09999
0
	Poll	\x01%2B\p(1,0)%2B\l(1,0)
	Read	\x01
	Digital	[1,9999,2000,800]	$1
	Write	\x0f%2B\p(1,0)%2B\l(1,0)%1b\l(8,0)%b\v

# Input Status 10001 to 19999
1
	Poll	\x02%2B\p(1,0)%2B\l(1,0)
	Read	\x02
	Digital	[1,9999,2000]	$1

# Input Registers 30001 to 39999
3
	Poll	\x04%2B\p(16,0)%2B\l(16,0)
	Read	\x04
	Word	[1,9999,125]	B$1

# Holding Registers 40001 to 49999
4
	Poll	\x03%2B\p(16,0)%2B\l(16,0)
	Read	\x03
	Word	[1,9999,125,100]	B$1
	Write	\x10%2B\p(16,0)%2B\l(16,0)%1b\l(8,0)%B\v
