C Control The I Unit-M Advanced 5 Vdc Inputs / outputs 16 x digital I/Os / 8 x analogue or digital I/Os Program memory 2 198805 データシート
製品コード
198805
RF OBJECT
The RF Object supports all basic functions for RF communication (based on the HT12 format) in an very
easy manner. The RF Receiver/Transmitter connected to PORT 2 (RX) und PORT 3 (TX).
The HT12 data format consists of a device address and a data byte reveived from (or transmitted to) a FT12
remote device. Even Word sized values are accepted, RF.SEND/GET will transfer 4 bytes for command
and 8 bytes for address.
easy manner. The RF Receiver/Transmitter connected to PORT 2 (RX) und PORT 3 (TX).
The HT12 data format consists of a device address and a data byte reveived from (or transmitted to) a FT12
remote device. Even Word sized values are accepted, RF.SEND/GET will transfer 4 bytes for command
and 8 bytes for address.
FORMAT:
11-10-09-08-07-06-05-04-03-02-01-00 DATA BIT
c3 c2 c1 c0 a7 a6 a5 a4 a3 a2 a1 a0 HT12 Format
a = Address
c = Command
The RF MODULE expects a receiver connected at port 2 and the
transmitter connected to port 3
RF.INIT
Activate the Object to get access to its registers for read/write operation. Close other Objects prior to open.
Syntax: OBJECT.instruction
RF.INIT
RF.SEND MyAddress , MyByte
RF.OFF
RF.GET
RF.SEND
Access the I²C bus to read/write a binary value.
Syntax: OBJECT.instruction Address,Data
Address: Variable or constant which is send as address
at write access (SEND)
Variable, the received address is moved to at read
access. Valid for word and byte size.
RF.INIT
RF.GET MyAddress , MyByte
RF.OFF
Data: Variable or constant which is send as data
at write access (SEND)
Variable, the received data is moved to at read
access. Valid for word and byte size.
Both values (address and data) will be read as 255 if no valid data frame was received i.e if the receive
buffer is empty. The receive buffer is set to 255 (address and data) if it has been read.
The Data Buffer may contain random Values if the receiver put out noise data (i.e. is working with open
Squelch / noise suppression)
RF.OFF
Close the Object prior to open any other Object.
Syntax: OBJECT.instruction
25