147
ST Language Configuration
Section 5-4
Angle Conversion
Instructions
The following functions can be used with CS/CJ-series CPU Units with unit
version 4.0 or later, or CJ2-series CPU Units.
TXD_SCU(<
Send_string
>,
<
SCU_unit_number
>,
<
Serial_port
>,<
Internal_
logic_port
>)
Send_string
STRING
---
Sends a text string to a
serial port on a Serial
Communications Unit.
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.)
SCU_unit_
number
INT,
UINT,
WORD
Serial_port
INT,
UINT,
WORD
---
Internal_logic
_port
INT,
UINT,
WORD
---
RXD_CPU(<
Storage_
location
>,<
Number_of_
characters
>)
Storage_
location
STRING
---
Receives a text string
from the RS-232C port
on the CPU Unit.
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
*)
Number_of_
characters
INT,
UINT,
WORD
RXD_SCB(<
Storage_
location
>,<
Number_of_
characters
>,<
Serial_port
>)
Storage_
location
STRING
---
Receives a text string
from the serial port on
a Serial Communica-
tions Board.
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
*)
Number_of_
characters
INT,
UINT,
WORD
Serial_port
INT,
UINT,
WORD
RXD_SCU(<
Storage_
location
>,<
Number_of_
characters
>,<
SCU_unit_
number
>,<
Serial_port
>,
<
Internal_logic_port
>)
Storage_
location
STRING
---
Receives a text string
from a serial port on a
Serial Communica-
tions Unit.
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.)
Number_of_
characters
INT,
UINT,
WORD
SCU_unit_
number
INT,
UINT,
WORD
Serial_port
INT,
UINT,
WORD
Internal_logic
_port
INT,
UINT,
WORD
Function
Argument data type
Return
value
data type
Description
Example
Function
Argument
data type
Return value
data type
Description
Example
DEG_TO_RAD(
argument
) REAL, LREAL REAL, LREAL Converts an angle from
degrees to radians.
a:=DEG_TO_RAD(b)
(*an angle in degrees in variable
b is converted to radians and
stored in variable
a
*)
RAD_TO_DEG (
argu-
ment
)
REAL, LREAL REAL, LREAL Converts an angle from
radians to degrees.
a:=RAD_TO_DEG(b)
(*an angle in radians in variable
b is converted to degrees and
stored in variable
a
*)
Содержание SYSMAC CX-Programmer 9
Страница 2: ......
Страница 4: ...iv ...
Страница 6: ...vi ...
Страница 8: ......
Страница 16: ...xvi ...
Страница 20: ...xx ...
Страница 26: ...xxvi Application Precautions 4 ...
Страница 27: ...Part 1 Function Blocks ...
Страница 28: ......
Страница 154: ...128 Procedures Section 3 2 ...
Страница 155: ...Part 2 Structured Text ST ...
Страница 156: ......
Страница 160: ...134 CX Programmer Specifications Section 4 2 ...
Страница 206: ...180 Procedures Section 6 1 ...
Страница 208: ...182 System defined external variables supported in function blocks Appendix A ...
Страница 230: ...204 Revision History ...
Страница 231: ......