Omron CX-PROGRAMMER V8.1 Operation Manual page 172

Function blocks/ structured text
Table of Contents

Advertisement

ST Language Configuration
Function
TXD_SCU(<Send_string>,
<SCU_unit_number>,
<Serial_port>,<Internal_
logic_port>)
RXD_CPU(<Storage_
location>,<Number_of_
characters>)
RXD_SCB(<Storage_
location>,<Number_of_
characters>,<Serial_port>)
RXD_SCU(<Storage_
location>,<Number_of_
characters>,<SCU_unit_
number>,<Serial_port>,
<Internal_logic_port>)
Angle Conversion
Instructions
Function
DEG_TO_RAD(argument) REAL, LREAL REAL, LREAL Converts an angle from
RAD_TO_DEG (argu-
ment)
Argument data type
Send_string
STRING
SCU_unit_
INT,
number
UINT,
WORD
Serial_port
INT,
UINT,
WORD
Internal_logic
INT,
_port
UINT,
WORD
Storage_
STRING
location
Number_of_
INT,
characters
UINT,
WORD
Storage_
STRING
location
Number_of_
INT,
characters
UINT,
WORD
Serial_port
INT,
UINT,
WORD
Storage_
STRING
location
Number_of_
INT,
characters
UINT,
WORD
SCU_unit_
INT,
number
UINT,
WORD
Serial_port
INT,
UINT,
WORD
Internal_logic
INT,
_port
UINT,
WORD
The following functions can be used with CS/CJ-series CPU Units with unit
version 4.0 or later, or CJ2-series CPU Units.
Argument
Return value
data type
data type
REAL, LREAL REAL, LREAL Converts an angle from
Return
Description
value
data type
---
Sends a text string to a
serial port on a Serial
Communications Unit.
---
---
---
Receives a text string
from the RS-232C port
on the CPU Unit.
---
Receives a text string
from the serial port on
a Serial Communica-
tions Board.
---
Receives a text string
from a serial port on a
Serial Communica-
tions Unit.
Description
degrees to radians.
radians to degrees.
Section 5-4
Example
TXD_SCU(a,b,c,d)
(*text string a is sent from
the serial port specified by
variable c on the Serial
Communications Unit speci-
fied by variable b using the
internal logic port specified
by variable d*. The variable
d indicates the internal logic
port number.)
RXD_CPU(a,b)
(*number of characters
specified by variable b are
received from the RS-232C
port on the CPU Unit and
stored in variable a*)
RXD_SCB(a,b,c)
(*number of characters
specified by variable b are
received from the serial port
specified by variable c on
the Serial Communications
Board and stored in variable
a*)
RXD_SCU(a,b,c,d,e)
(*number of characters
specified by variable b are
received from the serial port
specified by variable d on
the Serial Communications
Unit specified by variable c
using the internal logic port
specified by variable e and
stored in variable a*. The
variable e indicates the
internal logic port number.)
Example
a:=DEG_TO_RAD(b)
(*an angle in degrees in variable
b is converted to radians and
stored in variable a*)
a:=RAD_TO_DEG(b)
(*an angle in radians in variable
b is converted to degrees and
stored in variable a*)
147

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac ws02-cxpc1-v8Sysmac cx-programmer 8.1

Table of Contents