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 Datenbogen
Produktcode
198805
IF FREQ1 = 10000 THEN GOTO X
MyWord=FREQ/100
Example for request counter
EVENT COUNTING
In mode event counting FREQ is a read/write value. For Instruction to switch the mode please see the
chapter CONFIG REGISTER
chapter CONFIG REGISTER
IF FREQ1 = 10000 THEN GOTO X
MyWord=FREQ/100
Example for request FREQ1
FREQ1 = 0
Example for set FREQ1
INSTRUCTIONS AND KEYWORDS
INPUT/OUTPUT
Some of the available Input/output instructions can be redirected form the (default) serial interface
to the Objects LCD,CONFIG,IIC,RF or IR. See Chaper OBJECTS for reference.
For Floatingpoint Input/Output (Unit ADVANCED only) see Chapter FOATING POINT MODULE
BAUD
The Baud instruction defines the serial interface speed at program runtime. A value or constant is expected
as parameter. Variables are not supported. The parameter does not corresponds directly to the baudrate, it
is rather a symbolic constant for the true speed. The default speed is 9600 Baud, 8N1
to the Objects LCD,CONFIG,IIC,RF or IR. See Chaper OBJECTS for reference.
For Floatingpoint Input/Output (Unit ADVANCED only) see Chapter FOATING POINT MODULE
BAUD
The Baud instruction defines the serial interface speed at program runtime. A value or constant is expected
as parameter. Variables are not supported. The parameter does not corresponds directly to the baudrate, it
is rather a symbolic constant for the true speed. The default speed is 9600 Baud, 8N1
BAUD R1200
Syntax: Baud Rate
Rate is a constant or a numeric value. Some baudrates can be selected with predefined constants:
R1200 (1200 Baud), R2400 (2400 Baud), R4800 (4800 Baud) oder R9600 (9600 Baud)
INPUT
The Input instruction expects one or more bytes provided by the serial interface A variable is expected as
parameter. The received bytes are expected to be ASCII characters. The reception is terminated if Carriage
Return (&H0D) is received. The value is stored into the variable and then program execution is continued.
Program execution is on hold until the input is terminated.
INPUT Myword
Syntax: Input Variable
GET
The Get instruction waits for a single byte provided by the serial interface or provided (through redirection)
from one of this objects: CONFIG,IIC,IR or RF The received byte is stored into a variable. If an IR or RF
Object is affected, two bytes of data (address and data byte) must be read. See Chapter OBJECTS for
reference
GET MyByte
Syntax: Get Variable
PRINT
The PRINT instruction transmits strings,variables or constants of to the serial interface. A semicolon at the
end of a "Print" instruction causes a Line Feed suppression. (ASCII 13, 10). For transmission of more
The PRINT instruction transmits strings,variables or constants of to the serial interface. A semicolon at the
end of a "Print" instruction causes a Line Feed suppression. (ASCII 13, 10). For transmission of more
12