Omron Expansion Functions - Omron CX-PROGRAMMER V8.1 Operation Manual

Function blocks/ structured text
Table of Contents

Advertisement

ST Language Configuration
Data Type Combinations
FROM
BOOL
INT
BOOL
No
No
INT
No
No
DINT
No
YES
LINT
No
YES
UINT
No
YES
UDINT
No
YES
ULINT
No
YES
WORD
No
YES
DWORD
No
YES
LWORD
No
YES
REAL
No
YES
LREAL
No
YES
STRING
No
YES
5-4-6

OMRON Expansion Functions

Function type
Memory Card Functions
Communications Functions
Angle Conversion Functions
Memory Card
Functions
Function
WRITE_TEXT(<Write_string>,
<Directory_name_and_file_
name>,<Delimiter>,<Parame-
ter>)
Communications
Functions
Function
TXD_CPU(<Send_string>) Send_string
TXD_SCB(<Send_string>,
<Serial_port>)
146
In this example, the STRING variable C will be changed to an integer.
The combinations of data types that can be converted are given in the follow-
ing table.
DINT
LINT
UINT
No
No
No
No
YES
YES
YES
YES
No
YES
YES
YES
YES
No
YES
YES
YES
YES
No
YES
YES
YES
YES
No
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
No
YES
YES
Functions that write data to Memory Cards
Functions that send and received text strings
Functions that convert between degrees and radians.
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 data type
Write_string STRING
Directory_
STRING
name_and_
file_name
Delimiter
STRING
Parameter
INT,
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 data type
STRING
Send_string
STRING
Serial_port
INT,
UINT,
WORD
(YES = Conversion possible, No = Conversion not possible)
TO
UDINT
ULINT
WORD
DWORD
No
No
No
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
No
YES
YES
YES
No
YES
YES
YES
No
YES
YES
YES
YES
YES
YES
YES
YES
YES
No
YES
YES
Description
Return
Description
value
data type
---
Writes a text
string to a
Memory
Card.
Return
Description
value
data type
---
Sends a text string to
the RS-232C port on
the CPU Unit.
---
Sends a text string to
the serial port on a
Serial Communica-
tions Board.
Section 5-4
LWORD
REAL
LREAL
No
No
No
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
No
No
YES
No
No
No
No
No
YES
No
No
YES
No
No
No
No
No
Example
WRITE_TEXT(a,b,c,d)
(*text string a is written to a file
with the file name and directory
specified by variable b; if variable
d is 0, the text string is added to
the file along with delimiter speci-
fied by variable c; if variable d is 1,
a new file is created*)
Example
TXD_CPU(a)
(*text string a is sent from
the RS-232C port on the
CPU Unit*)
TXD_SCB(a,b)
(*text string a is sent from
the serial port specified by
variable b on the Serial
Communications Board*)
STRING
No
YES
YES
No
YES
YES
No
YES
YES
No
No
No
No

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