Sample Programs For Tcp And Udp Communications; Ladder Programming For Tcp/Ip Communications - Omron SYSMAC C200HW-PCU01 Operation Manual

Pc card unit
Table of Contents

Advertisement

Sample Programs for TCP and UDP Communications

10-3 Sample Programs for TCP and UDP Communications

10-3-1 Ladder Programming for TCP/IP Communications

System Configuration
CMCR Data Flow to the PC Card Unit
Computer
5. Computer
processing
Data Area Application
146
This subsection provides sample programs for TCP/IP communications and
UDP/IP communications.
The following program example sends and receives 100 bytes of data between
the PC Card Unit and the computer using TCP/IP communications. The system
and data area applications are described before the program example and
details of program operation are described following each section of the exam-
ple.
The system configuration for the program example and the PC Card Unit system
setup are shown below. To establish a TCP connection in this example, the PC
Card Unit is passively opened and the computer is actively opened.
IP address: 196.36.32.55, Port #4096
The data flow for sending CMCR instructions to the PC Card Unit is shown in the
following diagram.
Ethernet network
4. Send to network
Note These work bits (CIO 00000 to CIO 00003) are set by the program to control
CMCR execution and are not system flags, such as the Instruction Enabled Flag
(25204).
The data area words and bits used in the communications program are allocated
as shown in the following diagrams. These words and bits are used for CMCR
control data, command data, and results storage.
Computer
PC Card Unit
1. CMCR issued
2. Work bits turned ON
3. CMCR response
6. Results stored in results
storage area
7. Work bits turned OFF
Section 10-3
PC Card Unit
C200HX/HG/HE PC
Operating level #1
IP address: 196.36.32.101
FINS Network address:
$01
Node number:
$01
Unit address:
$10
C200HX/HG/HE

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac c200hw-pcs01-ev1

Table of Contents