CREAD/CWRITE
1 Introduction
1.1 Target group
1.2 Robot system documentation
1.3 Representation of warnings and notes
Safety
Notes
2 Description of functions
Functions
Example
3 Communication channels
3.1 Communication via a serial interface
Description
Configuration
Overview
3.2 Communication via external modules
Description
Configuration
Overview
3.3 Communication via the command channel
Description
Configuration
Overview
4 Configuring the serial interface
4.1 Overview of configuration of the serial interface
4.2 Assigning the serial interface to the operating system
Description
File
4.3 Configuring the serial interface
File
Parameter
4.4 Configuring the 3964R procedure
File
Parameter
4.5 Configuring the Xon/Xoff protocol
Description
File
Parameter
4.6 Displaying sent/received data with Telnet
Precondition
Procedure
Example
4.7 3964R procedure
4.7.1 3964R procedure sends data
Overview
Description
4.7.2 3964R procedure receives data
4.7.3 Initialization conflict
5 Configuring the external modules
File
Parameter
6 Programming
6.1 Programming overview
6.2 Symbols and fonts
6.3 CHANNEL
Function
Syntax
Description
Example
6.4 COPEN
Function
Syntax
Description
6.5 CREAD
Function
Syntax
Description
Read mode
Reading with interrupts
6.6 CWRITE
Function
Syntax
Description
Write mode
6.7 CCLOSE
Function
Syntax
Description
6.8 CIOCTL
Function
Syntax
Description
6.9 SREAD
Function
Syntax
Description
6.10 SWRITE
Function
Syntax
Description
6.11 CAST_TO
Function
Syntax
Description
6.12 CAST_FROM
Function
Syntax
Description
6.13 Permissible data types in CAST statements
6.14 "State" variable
6.14.1 Structure type STATE_T
Description
CMD_STAT RET1
INT MSG_NO
INT HITS
INT LENGTH
6.14.2 Return values for the variable "RET1"
Description
CREAD
CWRITE
SREAD/SWRITE
CCLOSE
6.15 "Format" variable
6.15.1 "Format" variable for CREAD/SREAD
6.15.2 "Format" variable for CWRITE/SWRITE
Element F
Element W
Element G
Element U
6.15.3 Conversion characters
6.15.4 Which format for which variable?
Procedure
Description
CREAD/SREAD
CWRITE/SWRITE
6.15.5 Conversion examples
Example 1
Example 2
Example 3
Example 4
Example 5
Example 6
Example 7
Example 8
7 Example programs
7.1 Serial interface: sending and receiving position data
7.1.1 Sending position data
Main program
Subprograms
7.1.2 Receiving position data
Main program
Subprograms
7.2 Serial interface: outputting the date
Data list
SRC file
7.3 External module: calling a function by means of LD_EXT_FCT
7.4 Command channel: starting, stopping and deselecting a program
7.5 Combining CREAD/CWRITE with CAST statements
Example 1
Example 2
8 Appendix
8.1 File paths
8.2 Hardware requirements
Cables
Connector pin allocation
9 KUKA Service
9.1 Requesting support
Introduction
Information
9.2 KUKA Customer Support
Availability
Index