14.04.2013 Views

manual de instalação e utilização transmissor console ... - Usicontrol

manual de instalação e utilização transmissor console ... - Usicontrol

manual de instalação e utilização transmissor console ... - Usicontrol

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Once that we have completed the 24 characters, we have to write the command for send the cursor to line 1-<br />

column 1. Otherwise, we will lose everything we write. We have still used only 4 packages of 8 bytes;<br />

therefore, we have other 4 available for example to send the state of LEDs and Buzzer.<br />

Switching-on the LEDs & Buzzer<br />

For establish the state of the LEDs and the buzzer we have to send a package of 2 data. This package have<br />

to be prece<strong>de</strong>d by an i<strong>de</strong>ntifier COB_ID=0x200+no<strong>de</strong>_ID.<br />

LEDs From 0 to 255 value<br />

BUZZER 0 or 1 value<br />

The first data says if the LEDs are lit in green, red or amber (combining green and red). It is a binary co<strong>de</strong><br />

that reads as follows, for example:<br />

LED 4 LED3 LED 2 LED 1<br />

Red Green Red Green Red Green Red Green<br />

128 64 32 16 8 4 2 1<br />

Data 0 0 1 1 1 0 0 1<br />

= 57h<br />

The second data says if the buzzer is ON (1) or OFF (0). This is the complete package:<br />

LEDs & Buzzer<br />

Position Message (Hex) Meaning<br />

LCD1 57 Led1=Green; Led2=Red; Led3=Amber; Led4=Off<br />

LCD2 01 Buzzer ON<br />

LCD3<br />

LCD4<br />

LCD5<br />

LCD6<br />

LCD7<br />

LCD8<br />

Important: The last byte of the second package that the systems transmit could have different values:<br />

- If the value is 1, means that the CAN message from the master is already sent to the transmitter and<br />

the receiver could receive one more message and save it to send later to the transmitter.<br />

- If the value is 0, means that the transmitter has already received CAN message and is ready to<br />

receive another one.<br />

- If the value is 3, means that the buffer is full and is waiting for the confirmation from the transmitter.<br />

If you send a message in this state, because it has nowhere to store it, be lost.<br />

TM70Pi V3.2 (11/02) 120021.pdf. 39<br />

IKUSI reserves the right to change this information without prior notice.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!