logo资料库

欧姆龙HostLink手册(官方英文版).pdf

第1页 / 共268页
第2页 / 共268页
第3页 / 共268页
第4页 / 共268页
第5页 / 共268页
第6页 / 共268页
第7页 / 共268页
第8页 / 共268页
资料共268页,剩余部分请下载后查看
SYSMAC CS/CJ/CP Series SYSMAC One NSJ Series Communications Commands Reference Manual
PRECAUTIONS
1 Intended Audience
2 General Precautions
3 Safety Precautions
4 Operating Environment Precautions
5 Application Precautions
SECTION 1 Introduction
1-1 Overview of Communications Commands
1-2 C-mode Commands
1-3 FINS Commands
SECTION 2 Overview of C-mode Commands
2-1 C-mode Commands
2-2 Command/Response Formats
2-3 Application Example
2-4 Precautions when Reusing Programs from Earlier Models
2-4-1 C-series Host Link Units with 1:N Host Link Format Selected
2-4-2 C-series Host Link Units with 1:1 Host Link Format Selected
2-4-3 C-mode Command Support
SECTION 3 Overview of FINS Commands
3-1 FINS Commands
3-2 Using FINS Commands
3-2-1 Issuing and using any command (CMND (490) instruction)
3-2-2 Using with respect to a host computer connected by Host Link
3-3 FINS Command and Response Frames
3-3-1 FINS Command Frame Configuration
3-3-2 FINS Response Frame Configuration
3-3-3 Individual Items in Command/Response Frames
3-4 Settings for Sending FINS Commands
3-4-1 FINS Command and Response Formats
3-4-2 Addresses in FINS Commands
3-4-3 Other FINS Command Settings
3-4-4 CMND(490) Setting Example
3-5 FINS Commands with Host Link Protocol
3-5-1 Connection Configurations
3-5-2 Overview of Command and Response Frames
3-5-3 Sending Commands from the Computer to the CPU Unit
3-5-4 Sending FINS Commands to the Host Computer from the CPU Unit
3-5-5 Sending Commands from the CPU Unit
3-5-6 Command Format Received by the Host Computer
3-5-7 Response Format Returned by the Host Computer
3-5-8 Flags for Network Communications
3-5-9 Timing of Commands to Host Computers
3-5-10 Programming Example
3-6 Serial Gateway Overview
3-6-1 Overview
3-6-2 Types of Protocol Conversion
3-6-3 Converting FINS to CompoWay/F
3-6-4 Converting FINS to Modbus-RTU
3-6-5 Converting from FINS to Modbus-ASCII
3-6-6 Converting from FINS to Host Link FINS
3-6-7 Treating Serial Communications Paths as Networks
3-6-8 Using a PLC as the Target
3-6-9 Using a non-PLC Component as the Target
3-6-10 Explanation
3-7 Communications Frames
3-7-1 CompoWay/F
3-7-2 Modbus-RTU
3-7-3 Modbus-ASCII
3-7-4 Host Link FINS
3-7-5 Sending Commands Using the CMND(490) Instruction
SECTION 4 C-mode Commands
4-1 C-mode Command List
4-2 End Codes
4-3 C-mode Command Details
4-3-1 About this Section
4-3-2 CIO AREA READ - - RR
4-3-3 LR AREA READ - - RL
4-3-4 HR AREA READ - - RH
4-3-5 TIMER/COUNTER PV READ - - RC
4-3-6 TIMER/COUNTER STATUS READ - - RG
4-3-7 DM AREA READ - - RD
4-3-8 AR AREA READ - - RJ
4-3-9 EM AREA READ - - RE
4-3-10 CIO AREA WRITE - - WR
4-3-11 LR AREA WRITE - - WL
4-3-12 HR AREA WRITE - - WH
4-3-13 TIMER/COUNTER PV WRITE - - WC
4-3-14 DM AREA WRITE - - WD
4-3-15 AR AREA WRITE - - WJ
4-3-16 EM AREA WRITE - - WE
4-3-17 TIMER/COUNTER SV READ 1 - - R#
4-3-18 TIMER/COUNTER SV READ 2 - - R$
4-3-19 TIMER/COUNTER SV READ 3 - - R%
4-3-20 TIMER/COUNTER SV CHANGE 1 - - W#
4-3-21 TIMER/COUNTER SV CHANGE 2 - - W$
4-3-22 TIMER/COUNTER SV CHANGE 3 - - W%
4-3-23 STATUS READ - - MS
4-3-24 STATUS CHANGE - - SC
4-3-25 ERROR READ - - MF
4-3-26 FORCED SET - - KS
4-3-27 FORCED RESET - - KR
4-3-28 MULTIPLE FORCED SET/RESET - - FK
4-3-29 FORCED SET/RESET CANCEL - - KC
4-3-30 PLC MODEL READ - - MM
4-3-31 TEST- - TS
4-3-32 PROGRAM READ - - RP
4-3-33 PROGRAM WRITE - - WP
4-3-34 I/O TABLE GENERATE - - MI
4-3-35 REGISTER I/O MEMORY - - QQMR
4-3-36 READ I/O MEMORY - - QQIR
4-3-37 ABORT - - XZ
4-3-38 INITIALIZE - - **
4-3-39 Undefined Command - - IC
SECTION 5 FINS Commands
5-1 Command Lists
5-1-1 FINS Commands
5-1-2 FINS Command Restrictions
5-1-3 End Codes
5-2 Designating Command Parameters
5-2-1 Designating I/O Memory (Variable) Area Addresses
5-2-2 I/O Memory Address Designations
5-3 FINS Commands
5-3-1 About this Section
5-3-2 MEMORY AREA READ: 01 01
5-3-3 MEMORY AREA WRITE: 01 02
5-3-4 MEMORY AREA FILL: 01 03
5-3-5 MULTIPLE MEMORY AREA READ: 01 04
5-3-6 MEMORY AREA TRANSFER: 01 05
5-3-7 PARAMETER AREA READ: 02 01
5-3-8 PARAMETER AREA WRITE: 02 02
5-3-9 PARAMETER AREA CLEAR: 02 03
5-3-10 PROGRAM AREA READ: 03 06
5-3-11 PROGRAM AREA WRITE: 03 07
5-3-12 PROGRAM AREA CLEAR: 03 08
5-3-13 RUN: 04 01
5-3-14 STOP: 04 02
5-3-15 CPU UNIT DATA READ: 05 01
5-3-16 CONNECTION DATA READ: 05 02
5-3-17 CPU UNIT STATUS READ: 06 01
5-3-18 CYCLE TIME READ: 06 20
5-3-19 CLOCK READ: 07 01
5-3-20 CLOCK WRITE: 07 02
5-3-21 MESSAGE READ: 09 20
5-3-22 MESSAGE CLEAR: 09 20
5-3-23 FAL/FALS READ: 09 20
5-3-24 ACCESS RIGHT ACQUIRE: 0C 01
5-3-25 ACCESS RIGHT FORCED ACQUIRE: 0C 02
5-3-26 ACCESS RIGHT RELEASE: 0C 03
5-3-27 ERROR CLEAR: 21 01
5-3-28 ERROR LOG READ: 21 02
5-3-29 ERROR LOG CLEAR: 21 03
5-3-30 FINS WRITE ACCESS LOG READ: 21 40
5-3-31 FINS WRITE ACCESS LOG CLEAR: 21 41
5-3-32 FILE NAME READ: 22 01
5-3-33 SINGLE FILE READ: 22 02
5-3-34 SINGLE FILE WRITE: 22 03
5-3-35 FILE MEMORY FORMAT: 22 04
5-3-36 FILE DELETE: 22 05
5-3-37 FILE COPY: 22 07
5-3-38 FILE NAME CHANGE: 22 08
5-3-39 MEMORY AREA-FILE TRANSFER: 22 0A
5-3-40 PARAMETER AREA-FILE TRANSFER: 22 0B
5-3-41 PROGRAM AREA-FILE TRANSFER: 22 0C
5-3-42 CREATE/DELETE DIRECTORY: 22 15
5-3-43 MEMORY CASSETTE TRANSFER (CP-series CPU Units Only): 22 20
5-3-44 FORCED SET/RESET: 23 01
5-3-45 FORCED SET/RESET CANCEL: 23 02
5-3-46 CONVERT TO COMPOWAY/F COMMAND: 28 03
5-3-47 CONVERT TO MODBUS-RTU COMMAND: 28 04
5-3-48 CONVERT TO MODBUS-ASCII COMMAND: 28 05
Index
Revision History
Cat. No. W342-E1-16 SYSMAC CS/CJ/CP Series CS1G/H-CPU@@H CS1G/H-CPU@@-EV1 CS1D-CPU@@H CS1D-CPU@@S CS1W-SCB@@-V1 CS1W-SCU@@-V1 CJ2H-CPU6@-ElP CJ2H-CPU6@ CJ2M-CPU@@ CJ1H-CPU@@H-R CJ1G/H-CPU@@H CJ1G-CPU@@P CJ1G-CPU@@ CJ1M-CPU@@ CJ1W-SCU@@-V1 SYSMAC One NSJ Series NSJ@-@@@@(B)-G5D NSJ@-@@@@(B)-M3D CP1H-X@@@@-@ CP1H-XA@@@@-@ CP1H-Y@@@@-@ CP1L-M/L@@@-@ CP1E-E@@D@-@ CP1E-N@@D@-@ Communications Commands REFERENCE MANUAL
NOTE All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form, or by any means, mechanical, electronic, photocopying, recording, or otherwise, without the prior written permission of OMRON. No patent liability is assumed with respect to the use of the information contained herein. Moreover, because OMRON is constantly striving to improve its high-quality products, the information contained in this manual is subject to change without notice. Every precaution has been taken in the preparation of this manual. Neverthe- less, OMRON assumes no responsibility for errors or omissions. Neither is any liability assumed for damages resulting from the use of the information contained in this publication. Trademarks • Microsoft, Windows, and Windows Vista are either registered trademarks or trademarks of Microsoft Corporation in the United States and other countries. ODVA, CIP, CompoNet, DeviceNet, and EtherNet/IP are trademarks of ODVA. Other company names and product names in this document are the trademarks or registered trademarks of their respective companies. Copyrights Microsoft product screen shots reprinted with permission from Microsoft Corporation.
SYSMAC CS/CJ/CP Series CS1G/H-CPU@@H CS1G/H-CPU@@-EV1 CS1D-CPU@@H CS1D-CPU@@S CS1W-SCB@@-V1 CS1W-SCU@@-V1 CJ2H-CPU6@-EIP CJ2H-CPU6@ CJ2M-CPU@@ CJ1H-CPU@@H-R CJ1G/H-CPU@@H CJ1G-CPU@@P CJ1G-CPU@@ CJ1M-CPU@@ CJ1W-SCU@@-V1 CP1H-X@@@@-@ CP1H-XA@@@@-@ CP1H-Y@@@@-@ CP1L-M/L@@@-@ CP1E-E@@D@-@ CP1E-N@@D@-@ SYSMAC One NSJ Series NSJ@-@@@@(B)-G5D NSJ@-@@@@(B)-M3D Communications Commands Reference Manual Revised February 2017
iv
Notice: OMRON products are manufactured for use according to proper procedures by a qualified operator and only for the purposes described in this manual. The following conventions are used to indicate and classify precautions in this manual. Always heed the information provided with them. Failure to heed pre- cautions can result in injury to people or damage to property. !DANGER !WARNING !Caution Indicates an imminently hazardous situation which, if not avoided, will result in death or serious injury. Additionally, there may be severe property damage. Indicates a potentially hazardous situation which, if not avoided, could result in death or serious injury. Additionally, there may be severe property damage. Indicates a potentially hazardous situation which, if not avoided, may result in minor or moderate injury, or property damage. OMRON Product References All OMRON products are capitalized in this manual. The word “Unit” is also capitalized when it refers to an OMRON product, regardless of whether or not it appears in the proper name of the product. The abbreviation “Ch,” which appears in some displays and on some OMRON products, often means “word” and is abbreviated “Wd” in documentation in this sense. The abbreviation “PLC” means Programmable Controller. “PC” is used, how- ever, in some Programming Device displays to mean Programmable Control- ler. Visual Aids The following headings appear in the left column of the manual to help you locate different types of information. Note Indicates information of particular interest for efficient and convenient opera- tion of the product. 1,2,3... 1. Indicates lists of one sort or another, such as procedures, checklists, etc. v
CJ Series CJ2 CPU Units CJ2H CPU Units CJ2H-CPU6@-EIP CJ2H-CPU6@ CJ2M CPU Units CJ2M-CPU3@ CJ2M-CPU1@ CJ1-H CPU Units CJ1H-CPU@@H-R CJ1H-CPU@@H CJ1G-CPU@@H CJ1G-CPU@@P (Loop CPU Units) CJ1M CPU Units CJ1M-CPU@@ CJ1 CPU Units CJ1G-CPU@@ CJ-series Basic I/O Units CJ-series Special I/O Units CJ-series CPU Bus Units CJ-series Power Supply Units NSJ Series CS Series CP Series NSJ Controllers NSJ5-TQ@@(B)-G5D NSJ5-SQ@@(B)-G5D NSJ8-TV@@(B)-G5D NSJ10-TV@@(B)-G5D NSJ12-TS@@(B)-G5D NSJ Controllers NSJ5-TQ@@(B)-M3D NSJ5-SQ@@(B)-M3D NSJ8-TV@@(B)-M3D CS1-H CPU Units CS1H-CPU@@H CS1G-CPU@@H CS1D CPU Units CS1D CPU Units for Duplex Systems CS1D-CPU@@H CS1D CPU Units for Simplex Systems CS1D-CPU@@S CS1D Process-control CPU Units CS1D-CPU@@P CS1 CPU Units CS1H-CPU@@(-V) CS1G-CPU@@ (-V) CP1E CPU Units CP1E-E@@D@-@*2 CP1E-N@@D@-@*3 CP1L CPU Units CP1L-L @@D@-@ CP1L-M@@D@-@ CP1H CPU Units CP1H-X@@D@-@ CP1H-XA@@D@-@ CP1H-Y@@DT-D CP-series Expansion I/O Units CP-series Expansion Units NSJ-series Expansion Units CS-series Basic I/O Units CJ-series Special I/O Units*1 CS-series Special I/O Units CJ-series CPU Bus Units*1 CS-series CPU Bus Units CS-series Power Supply Units Note: A special Power Supply Unit must be used for CS1D CPU Units. *1 Can only be used with the CP1H CPU unit. *2 Indicated as "E-type" in some parts of this manual. *3 Indicated as "N-type" in some parts of this manual. vi
TABLE OF CONTENTS PRECAUTIONS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Intended Audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . General Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Safety Precautions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Operating Environment Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Application Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 2 3 4 5 SECTION 1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1 Overview of Communications Commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2 C-mode Commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3 FINS Commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SECTION 2 Overview of C-mode Commands . . . . . . . . . . . . . . . . . . . . . 2-1 C-mode Commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2 Command/Response Formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-3 Application Example. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-4 Precautions when Reusing Programs from Earlier Models . . . . . . . . . . . . . . . . . . . . . . . . . SECTION 3 Overview of FINS Commands. . . . . . . . . . . . . . . . . . . . . . . . FINS Commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1 3-2 Using FINS Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . FINS Command and Response Frames . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3 Settings for Sending FINS Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4 3-5 FINS Commands with Host Link Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-6 Serial Gateway Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-7 Communications Frames. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SECTION 4 C-mode Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-1 C-mode Command List. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-2 End Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-3 C-mode Command Details . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv xvi xvi xvi xviii xix 1 2 2 4 7 8 9 14 15 27 28 30 32 34 43 66 86 99 100 103 105 5-1 Command Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-2 Designating Command Parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . FINS Commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-3 SECTION 5 FINS Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149 150 163 170 Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237 Revision History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241 vii
viii
分享到:
收藏