Manuals
/
Omron
/
Computer Equipment
/
Network Card
Omron
CJ1W-ETN21 operation manual Appendix F
Models:
CJ1W-ETN21
1
230
242
242
Download
242 pages
30.9 Kb
227
228
229
230
231
232
233
234
<
>
Specifications
Error codes
Following diagram
Maintenance
Configuration of the Mail
Connecting to the FTP Server
Unit Setup
Command Parameters
Procedure
Mail Send Function Errors
Page 230
Image 230
Inspections
Appendix F
206
Page 229
Page 231
Page 230
Image 230
Page 229
Page 231
Contents
Ethernet Units Construction of Applications
Revised November
Omron Product References
Omron
Page
Table of Contents
FTP Server
Index 207 Revision History 215
Table of Contents
Commands
Information on setting communications using CX-Programmer
Information on how to manage and use IP addresses
Section Contents
Manual Model Name Contents Number
Relevant Manuals
Xiii
Xiv
Read and Understand this Manual
Application Considerations
Disclaimers
Xviii
Confirming Unit Versions with Support Software
Unit Versions
Notation of Unit Versions on Products
Unit Version Notation
Lowing table
Precautions
Intended Audience
General Precautions
Safety Precautions
Safety Precautions
Operating Environment Precautions
Application Precautions
Application Precautions
Concepts
Conformance to EC Directives
Applicable Directives
EMC Directives
Section
Functions Listed by Purpose
Ethernet Unit Communications Services
Service Main functions Counterpart device Reference
Acquired for the Ethernet Unit
Table of Protocols
Communications Protocol used Situation when used Reference
Unit setting tag
Section
Smtp
Common Protocol Settings
Contents Default
2 POP
3 DNS
Section
Section
Mail Send Function
Advantages
Mail Send Function Overview
Introduction
Description
Mail Send Functions Compatibility with Earlier Models
Mail Send Function Details
Comparison with the Earlier Mail Send Function
Contents of E-mail Body
Following header information is included
Trigger condition Text entered as subject
Ethernet Unit information is always included in the e-mail
Words value has changed Channel data has changed from XX to
Ethernet Unit Information
Optional Information
Attached File Details
Error Log Information Status Information
Extension Content
Memory Data 6,000 Words Max
Data sent Body/Attached file Mail body
Summary of E-mail Body Information and Attached Files
File Data 1 MB Max
Specifications
Mail Send Function Specifications
Function Specifications
Details of the Available Mail Triggers
Using the Mail Send Function
Procedure
Classification Trigger type
Setting Setting requirement Reference
Settings Required for the Mail Send Function
Transferring the settings data
Unit Setup
Using the Mail Send Function
Send Mail
Set up to 2 destination mail addresses
Mail Address
Data Sent by Mail When Required Data Sent in E-mail Body
Send Mail Condition Settings
Mail Address Specification Required
Data Sent in an Attached File
Send Mail Trigger Type Setting Required
Attached File Name
Send Mail Status
Mail Send Function Status
Send Mail Status
Bit numbers Status
Mail Send Switch, Accessing Memory/Sending Mail Flag
Mail Send Switch Bit 03 of n
IOM Format
Accessing Memory/Sending Mail Flag Bit 01 of n+17
Memory Data Formats
TXT Format
Attached File Transfer Times
CSV Format
Access Times for CS1 and CJ1 CPU Units
Mail Send Function Errors
Identifying and Correcting Mail Send Function Errors
Access Times for CS1-H and CJ1-H CPU Units
Error Meaning Detailed error code Correction
Troubleshooting Mail Send Errors with LED Indicators
Error Log Error Codes for the Mail Send Function
Probable cause Correction
Initial Server Settings
Make the Unit Setup Settings from the CX-Programmer
Initial Settings Example
Example Application
Destination Mail Address Setup
Send Condition Setting
Example Send e-mail when W300 bit 00 goes from OFF to on
Transfer the CPU Bus Unit Setup Settings
Automatic Transmission when Send Condition is Satisfied
Send when there is a Change in the CPU Units Status
Receive Mail Function
Advantages
Configuration of the Mail
Mail Receive Function Overview
Description
Command Execution Results
Table of Remote Mail Commands
Command Parameters
Attached File Data
Received E-mail
Mail Receive Function Specifications
Specification
Response E-mail
Using the Mail Receive Function
Settings Required for the Mail Receive Function
Tion
Posting Mail Address Protection Setting
Receive Mail Tab
Receive Attached File Setting
Receive Command Setting
Format
Remote Mail Command Details
Command Format
Response Format
Function
Command Format
FileWrite File Write
Mounted in the CPU Unit
FileRead File Read
FileDelete File Delete
Card mounted in the CPU Unit
Response Format Details
FileList File List Read
EM file memory or a Memory Card mounted in the CPU Unit
Memory or a Memory Card mounted in the CPU Unit
UMBackup User Memory Backup
Command Format Details
PARAMBackup Parameter Area Backup
Or a Memory Card mounted in the CPU Unit
IOMWrite I/O Memory Write
Units I/O memory. The data is written in word units
Subject Body
IOMRead I/O Memory Read
Units
ReIOMRead
ChangeMode Operating Mode Change
Changes the CPU Units operating mode
ErrorLogRead Error Log Read
Bus Unit or Special I/O Unit
ErrorLogClear Error Log Clear
Since power was turned on or the mail log was cleared
MailLogRead Mail Log Read
MailLogClear Mail Log Clear
Net Unit
Test Mail Test
Response Response Status Description Code
FinsSend Fins Command Send
Response List
Mail Receive Function Status
Accessing Memory/Receiving Mail Flag
Accessing Memory/ Receiving Mail Flag Bit 02 of n+17
IOM Format
TXT Format
CSV Format
Access Times for CS1 CJ1 CPU Units
Access Times for CS1-H CJ1-H CPU Units
Troubleshooting Mail Receive Errors with LED Indicators
Mail Receive Function Errors
Identifying and Correcting Mail Receive Function Errors
Error code Meaning Detailed error code Correction
Hex 1st byte 2nd byte
Item name Example
DNS Server IP Address Setting DNS Tab, When Required
Initial Settings for the Mail Receive Function
Backing Up the CPU Units User Program Memory Card
Send Remote Mail Commands
Reading Data from a CPU Unit Data Area
FTP Server
Specifications
Overview
File Types
Connecting to the FTP Server
FTP Server Function Details
Using the FTP Server Function
FTP File Transfer Mode
CX-Programmer Settings Setting conditions Tab
List of Settings Required for the FTP Server Function
Setup Tab
Setting Details Default value
FTP Server Application Example
Confidential
Using the Commands
Using FTP Commands
Table of Commands
Open
Rename
User
Dir
Pwd
Mkdir
Rmdir
Cdup
Mget
Type
Get
Put
Close
Delete
Mdelete
Bye
Message Meaning
Error Messages and FTP Status
Error Messages
Checking FTP Status
FTP Indicator
FTP indicator Meaning
FTP Status Flag
File Names
Using File Memory
File Memory
Directories
Unit
File type File name Extension Contents Description
File Names Handled by CPU Unit
Memory Initialization method
Initializing File Memory
4 I/O Memory Data Format
Data format Use of CRs and CR position
Section
9ABC
CS1-H CPU Units/CJ1-H CPU Units
FTP File Transfer Time
CS1 CPU Units/CJ1 CPU Units
File system Memory Card EM File Memory
Enter the login name
Unix Application Example
Transfer the file RESULT.IOM to the workstation
Change to the Memcard directory
Change data type to binary
Write the file PLAN.IOM to the Memory Card
Section
Automatic Clock Adjustment Function
Overview
CPU Unit Conditions
Using the Automatic Clock Adjustment Function
Settings Required for Automatic Clock Adjustment Function
Settings Setting conditions Reference
Auto Adjust Time
Automatic Clock Adjustment Sntp Errors
Automatic Clock Adjustment Switch
Automatic Clock Adjustment Error Processing
Automatic Clock Adjustment Switch Bit 04 of n
Automatic Clock Adjustment Error Processing
CPU Unit error
Socket Services
Page
What are Sockets?
Using Sockets with the Ethernet Unit
Overview of Socket Communications from Ethernet Units
Socket Port Numbers
Opening TCP Sockets
Protocol Overview
Differences between TCP and UDP
TCP Communications
TCP Communications Procedure
Passive Open and Active Open
Fragmentation of Send Data
Socket Service Functions
Using Socket Services with Socket Service Request Switches
Protocol Socket Service Request CMND490
Command code Name
Using Socket Services with CMND490
Specific Socket Service Functions
Protocol Socket service request
Manipulating Dedicated Control Bits
Socket Service Function Guide
Differences with Previous Models
Executing CMND490
CX-Programmer Setting Setting requirements Unit Setup Tab
Using Socket Service Functions
Settings Required for Socket Service Function
Manipulating Dedicated Control Bits
Setup
Details Default value
109
UDP/TCP Socket Status Ethernet Unit to CPU Unit
Socket Service Status
CIO Area Allocations
Bit Switch Status Manipulated Unit operation
DM Area Allocations
TCP Connection Status Ethernet Unit to CPU Unit
Application Procedure
Procedure
Number Status Meaning
Socket Services and Socket Status
Precautions
Error Evaluation
Program Flow
Socket Service Parameters
UDP Socket Services
Parameter Settings
Use of the parameters by the socket service
TCP Socket Services
UDP/TCP Socket No
Parameters
Socket Option
Local UDP/TCP Port No
Time Out Time
Following specifications can be used
Remote UDP/TCP Port No
Number of Bytes to Send/Receive
Socket Service Request Switches
Following diagram
UDP Socket Receive Request
Response Codes
UDP Socket Open Request
Response Meaning Code
UDP Socket Send Request
UDP Socket Close Request
TCP Socket Passive Open Request
TCP Socket Active Open Request
TCP Socket Receive Request
Drinuse
TCP Socket Send Request
Closing during Other
Timing Charts
TCP Socket Close Request
Processes
Close Request Switch
Force-close Switch
Data Flow
System Configuration
8 TCP/IP Communications Programming Example
Basic Operations
CIO Area
Program Memory Map
DM Area
Programming Example
TCP Passive Open
130
Programming example uses the following system configuration
9 UDP/IP Communications Programming Example
Tion on errors
CIO 000000 is turned on to request opening a UDP socket from
133
134
135
Using Socket Services with CMND490
Using Socket Service
137
Socket Number
Basic Fins Command Format
Command Code
Results Storage Area
Socket Service Timing Chart
Response Codes in the Command Response
Communications Timing Chart
Response Codes in the Results Storage Areas
140
System Configuration
Close Request during Receive Request
Data Flow
Basic Operations
Program Memory Maps
Are structured
144
145
146
147
148
149
150
151
152
153
154
UDP Socket Service
Precautions in Using Socket Services
UDP and TCP Socket Services
TCP Socket Service
Precautions in Using Socket Service Request Switches
CS-H/CJ-H CPU Units
Maximum Transmission Delays Ignoring other Network Delays
TCP Socket Services Using CMND490 CS/CJ CPU Units
Calculation
Using Fins Communications to Create Host Applications
Overview of Fins Communications
Communications On an Ethernet Network
Using the FINS/UDP and FINS/TCP Methods
Fins Communications Service Specifications for Ethernet
Fins Response Frame Format
Fins Command Frame Format
Fins Frames
Fins Header Information
FINS/UDP Features
FINS/UDP Method
FINS/UDP Frame Format UDP Port Numbers for
FINS/UDP
Procedure for Using
Communications Parameters Used by Host Computer
Sending Commands from a Host Computer
Designating Remote Addresses
FINS/UDP Sample Program
By sending a Fins command Memory Area READ, command code
Mand, the command will be resent
Operation Overview
Sample Program
15 * FINS/UDP Communications Sample Program
169
170
FINS/TCP Features
FINS/TCP Method
FINS/TCP Connection Numbers
FINS/TCP Frame Format
TCP Port Number for
Age them in an internal table
Communications
FINS/TCP Connection Status Word n+23
Automatic Allocation Procedure
Automatic Allocation Fins Node Addresses
175
Setup Tab
FINS/TCP Tab
Fins Node Address Data Send Server to Client Command
FINS/TCP Mode Specifications
Fins Node Address Data Send Client to Server Command
FINS/TCP Headers
Error code Details Hexadecimal
Fins Frame Send Command
Following table shows the list of error codes
Fins Frame Send Error Notification Command
Command
Connection Sequence
Normal Operation
Error Connection Sequence
ACK FIN
182
183
From onwards, the connection is established again
Host computer Remote node
FINS/TCP Sample Program
186
187
188
189
190
191
Transmission Delay
Maximum Transmission Delays Writing/Reading to CPU Unit
Write Command Delay Time
Receive Processing Command CPU Bus Unit Service Cycle
704 ms
Read Command Delay Time
Transmission Processing
Response
194
Ethernet Network Parameters
Parameter Value Description
Appendix a
Buffer Configuration
Appendix B
Network Memory
TCP Status Transitions
Status Meaning
Appendix C
Ascii Characters
Space
Appendix D
Settings After Replacing a CPU
Maintenance
Settings after Replacing an Ethernet Unit
Replacing an Ethernet Unit
Appendix E
Tools Required for Inspection
Inspections
Items
Appendix F
Numerics
Index
209
210
211
212
213
214
Revision code Date Revised content
Revision History
Revision History
Omron Corporation Control Devices Division H.Q
Regional Headquarters
Authorized Distributor