User Tools

Site Tools


cangc8-firmware-en

CAN-GC8 Firmware

Packet

The OPC_ACDAT opcode is used to send text blocks to the CAN-GC8.
The text must be terminated with a zero character.
A new line can be set with the pipe character: '|'. See Text format.

Format

<0xF6> <ADDRhi> <ADDRlo> <Flags (block#)> <Txt0> <Txt1> <Txt2> <Txt3>

Example Trace

OText    0171 text event [-][Good |morning %USER%]
OText    0081 try to resolve [USER]
OText    0287 send text [Good |morning rob]
OCBUS    2132 set display 1:1 to "Good |morning rob"
OCBUS    0170 OPC_ACDAT(0xF6) address=1 display=1 line=0 nr=0 text=[Good]
OCBUS    0170 OPC_ACDAT(0xF6) address=1 display=1 line=0 nr=1 text=[ |mo]
OCBUS    0170 OPC_ACDAT(0xF6) address=1 display=1 line=0 nr=2 text=[rnin]
OCBUS    0170 OPC_ACDAT(0xF6) address=1 display=1 line=0 nr=3 text=[g ro]
OCBUS    0170 OPC_ACDAT(0xF6) address=1 display=1 line=0 nr=4 text=[b   ]

LED Backlight is missing...

Files

Sources

HEX

I/O

Display 1
SI RA0
CLK RA1
CSB RA3
RS RA4


Display 2
SI RC0
CLK RC1
CSB RC2
RS RC3



Node Variables

# Description
1 node configuration; Not used.
2 CAN-ID
3,4 Display configuration


Display configuration byte

Bit Function Remark
0-3 Contrast
4 First line double high


Node Events

Event# Description Variable
0,1 Display 1,2 not used


SPI


cangc8-firmware-en.txt · Last modified: 2020/07/06 15:01 by phg