146
ST Language Configuration
Section 5-4
In this example, the STRING variable C will be changed to an integer.
Data Type Combinations
The combinations of data types that can be converted are given in the follow-
ing table.
(YES = Conversion possible, No = Conversion not possible)
5-4-6
OMRON Expansion Functions
Memory Card
Functions
The following functions can be used with CS/CJ-series CPU Units with unit
version 4.0 or later, or CJ2-series CPU Units.
Communications
Functions
The following functions can be used with CS/CJ-series CPU Units with unit
version 4.0 or later, or CJ2-series CPU Units.
FROM
TO
BOOL
INT
DINT
LINT
UINT
UDINT
ULINT
WORD
DWORD
LWORD
REAL
LREAL
STRING
BOOL
No
No
No
No
No
No
No
No
No
No
No
No
No
INT
No
No
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
DINT
No
YES
No
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
LINT
No
YES
YES
No
YES
YES
YES
YES
YES
YES
YES
YES
No
UINT
No
YES
YES
YES
No
YES
YES
YES
YES
YES
YES
YES
YES
UDINT
No
YES
YES
YES
YES
No
YES
YES
YES
YES
YES
YES
YES
ULINT
No
YES
YES
YES
YES
YES
No
YES
YES
YES
YES
YES
No
WORD
No
YES
YES
YES
YES
YES
YES
No
YES
YES
No
No
YES
DWORD
No
YES
YES
YES
YES
YES
YES
YES
No
YES
No
No
YES
LWORD
No
YES
YES
YES
YES
YES
YES
YES
YES
No
No
No
No
REAL
No
YES
YES
YES
YES
YES
YES
YES
YES
YES
No
No
No
LREAL
No
YES
YES
YES
YES
YES
YES
YES
YES
YES
No
No
No
STRING
No
YES
YES
No
YES
YES
No
YES
YES
No
No
No
No
Function type
Description
Memory Card Functions
Functions that write data to Memory Cards
Communications Functions
Functions that send and received text strings
Angle Conversion Functions
Functions that convert between degrees and radians.
Function
Argument data type
Return
value
data type
Description
Example
WRITE_TEXT(<
Write_string
>,
<
Directory_name_and_file_
name
>,<
Delimiter
>,<
Parame-
ter
>)
Write_string
STRING
---
Writes a text
string to a
Memory
Card.
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*)
Directory_
name_and
_
file_name
STRING
Delimiter
STRING
Parameter
INT,
UINT,
WORD
Function
Argument data type
Return
value
data type
Description
Example
TXD_CPU(<
Send_string
>) Send_string
STRING
---
Sends a text string to
the RS-232C port on
the CPU Unit.
TXD_CPU(a)
(*text string
a
is sent from
the RS-232C port on the
CPU Unit*)
TXD_SCB(<
Send_string
>,
<
Serial_port
>)
Send_string
STRING
---
Sends a text string to
the serial port on a
Serial Communica-
tions Board.
TXD_SCB(a,b)
(*text string
a
is sent from
the serial port specified by
variable
b
on the Serial
Communications Board*)
Serial_port
INT,
UINT,
WORD
Summary of Contents for CX-PROGRAMMER V8.1
Page 3: ...iv...
Page 5: ...vi...
Page 7: ......
Page 15: ...xvi...
Page 19: ...xx...
Page 25: ...xxvi Application Precautions 4...
Page 26: ...Part 1 Function Blocks...
Page 27: ......
Page 153: ...128 Procedures Section 3 2...
Page 154: ...Part 2 Structured Text ST...
Page 155: ......
Page 159: ...134 CX Programmer Specifications Section 4 2...
Page 205: ...180 Procedures Section 6 1...
Page 207: ...182 System defined external variables supported in function blocks Appendix A...
Page 229: ...204 Revision History...
Page 230: ......