background image

9-31

9   Troubleshooting and Maintenance

CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit(W494)

9-5 Even

t L
ogs

9

9-5-2  Error T

ab
le  

Event code

Event name

Meaning

Assumed cause

Level

Reference

Maj

Prt

Min

Obs

Info

0474 0000 hex

Error Log 
Data Error

An error occurred in 
the error log data.

There is a source of noise 
nearby.

Non-volatile memory failure

page 9-37

1480 0000 hex

Protocol Data 
Error

A protocol data 
checksum error has 
occurred.

The communications connec-
tor with the CX-Protocol was 
disconnected or the power sup-
ply to the Controller was inter-
rupted during transfer of the 
protocol data from the CX-Pro-
tocol.

The Serial Communications 
Unit failed.

page 9-37

34A4 0000 hex

System 
Setup Error

There is an error in 
the system settings 
for the Serial Com-
munications Unit.

There is an error in the system 
settings for the Serial Commu-
nications Unit.

page 9-38

0475 0000 hex

DTR Check 
Error

An error was found 
during the DTR 
check.

Loopback test jig failure.

Noise

The communications circuits in 
the Serial Communications Unit 
are faulty.

page 9-38

0476 0000 hex

CTS Check 
Error

An error was found 
during the CTS 
check.

Loopback test jig failure.

Noise

The communications circuits in 
the Serial Communications Unit 
are faulty.

page 9-39

54A8 0000 hex

Command 
Error

A command error 
occurred.

The constant in the expected 
receive message that is set in 
the protocol macro is different 
from the constant in the mes-
sage that was received.

page 9-40

54A9 0000 hex

Sequence 
Abort Com-
pleted

The sequence was 
ended by an Abort 
setting for the next 
processing or error 
processing.

The protocol macro data is not 
set correctly. 
The baud rate, frame format, or 
other system setting does not 
agree with the remote node.

page 9-40

Содержание CJ1W-SCU22

Страница 1: ...Machine Automation Controller CJ series Serial Communications Units Operation Manual for NJ series CPU Unit W494 E1 03 CJ1W SCU22 CJ1W SCU32 CJ1W SCU42 Serial Communications Units...

Страница 2: ...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...

Страница 3: ...ence during operation This manual is intended for the following personnel who must also have knowledge of electrical sys tems an electrical engineer or the equivalent Personnel in charge of introducin...

Страница 4: ...s Setting devices and hardware Using motion control Using EtherCAT Using EtherNet IP Using CJ series Units Software settings Using motion control Using EtherCAT Using EtherNet IP Programming Using mot...

Страница 5: ...es the NJ series Controller specifications Section 2 CPU Unit Operation This section provides information that is necessary to use the CPU Unit including how the CPU Unit works and the operations that...

Страница 6: ...rial Communications Units Operation Manual for NJ series CPU Unit Cat No W494 this manual Section Description Section 1 Introduction This section provides an introduction to the Serial Communications...

Страница 7: ...mmunications performance of the Serial Communica tions Boards and the Serial Communications Units Section 11 Loopback Test This section describes the procedure and other information required to conduc...

Страница 8: ...tions used for the CX Integrator Section 3 Routing Tables This section describes how to set the routing tables For NJ series routing table is created by using Sysmac Studio instead of CX Integrator Se...

Страница 9: ...them toward the back of the Units The End Cover is connected in the same way to the Unit on the far right side of the Controller 1 Join the Units so that the connectors fit exactly 2 The yellow slide...

Страница 10: ...al Controller to the Sysmac Studio For the Sysmac Studio synchronization is used to both upload and download data Here synchronize means to automatically compare the data for the Sysmac Studio on the...

Страница 11: ...al 1 R 2 A 3 I 4 5 6 7 8 9 1 R 2 A 3 I 5 6 7 8 9 Introduction A Standard System Protocol Initial Settings and Allocations of Device Variable for CJ series Unit Appendices Installation and Wiring Index...

Страница 12: ...oduction 1 1 Using this Manual 1 2 1 2 Overview 1 3 1 3 Protocol Overview 1 5 1 3 1 Protocol Macros 1 6 1 3 2 Loopback Test 1 6 1 3 3 Serial Gateway Mode 1 6 1 3 4 No protocol Mode 1 7 1 3 5 Modbus RT...

Страница 13: ...Dimensions 3 6 3 2 6 Reducing Electrical Noise for External Wiring 3 7 3 2 7 2 Wire and 4 Wire Connections 3 7 3 2 8 NT AL001 Link Adapter Settings 3 8 3 2 9 Connections for Protocol Macro Serial Gate...

Страница 14: ...ol Conversion 5 22 5 4 1 Types of Protocol Conversion 5 22 5 4 2 Converting to CompoWay F 5 23 5 4 3 CompoWay F Connection Examples 5 25 5 4 4 Converting to Modbus RTU 5 26 5 4 5 Converting to Modbus...

Страница 15: ...edure 8 2 8 1 4 Indicators Used for the Loopback Test 8 3 8 2 Device Variable for CJ series Unit Loopback Test 8 4 8 2 1 Device Variables for CJ Series Unit for System Settings 8 4 8 2 2 Device Variab...

Страница 16: ...mmunications Specifications R 41 R 3 2 Command Response Formats R 42 R 3 3 Command Frame Contents R 43 R 3 4 Mitsubishi Computer Link Master Protocol Sequences R 43 R 3 5 Structure of the Protocol R 4...

Страница 17: ...BUYER OR USER ACKNOWLEDGES THAT THE BUYER OR USER ALONE HAS DETERMINED THAT THE PRODUCTS WILL SUITABLY MEET THE REQUIREMENTS OF THEIR INTENDED USE OMRON DISCLAIMS ALL OTHER WARRANTIES EXPRESS OR IMPLI...

Страница 18: ...ossible uses of the products nor is it intended to imply that the uses listed may be suitable for the products Outdoor use uses involving potential chemical contamination or electrical interference or...

Страница 19: ...e consult with your OMRON representative at any time to confirm actual specifications of purchased products DIMENSIONS AND WEIGHTS Dimensions and weights are nominal and are not to be used for manufac...

Страница 20: ...ons The following notation is used Definition of Precautionary Information WARNING Indicates a potentially hazardous situation which if not avoided could result in death or serious injury Additionally...

Страница 21: ...ecautions including warnings The specific operation is shown in the triangle and explained in text This example indicates a precaution for electric shock The triangle symbol indicates precautions incl...

Страница 22: ...ded in external control circuits The Controller outputs may remain ON or OFF due to deposition or burning of the output relays or destruction of the output transistors As a countermea sure for such pr...

Страница 23: ...of time when a momentary power interruption occurs This means that the NJ series Controller may receive incorrect signals from external devices that are also affected by the power interruption Accord...

Страница 24: ...all terminal screws and cable connector screws are tightened to the torque specified in the relevant manuals The loose screws may result in fire or malfunction Online Editing Execute online editing o...

Страница 25: ...operly locked into place Always remove any dustproof labels that are on the top of the Units when they are shipped before you turn ON the power supply If the labels are not removed heat will accumulat...

Страница 26: ...after the power supply to the Controller has turned ON If the power supply to the Controller is turned ON after the control power supply temporary errors may result in incorrect control system signals...

Страница 27: ...t have occurred for the EtherCAT Master Function Module Always confirm safety at the connected equipment before you reset Controller errors for a CJ series Special Unit When a Controller error is rese...

Страница 28: ...rsely affected before you transfer the tag data link parameters All related EtherNet IP nodes are reset when you transfer settings for the built in EtherNet IP port including IP addresses and tag data...

Страница 29: ...k con dition Set the Impermissible Number of Continuous Timeouts setting in the EtherCAT master to at least 2 Refer to the NJ series CPU Unit Built in EtherCAT Port User s Manual Cat No W505 for detai...

Страница 30: ...when shipping finished products that contain a CPU Unit to the State of California USA When connecting RS 422A 485 always check the polarity before you make connections The signal names SDA B and RDA...

Страница 31: ...onnector is disconnected from the Rack Be sure that the connectors are secure Do not allow foreign matter to enter the openings in the Unit Doing so may result in Unit burning electric shock or failur...

Страница 32: ...fset from the data to restore If a Task Period Exceeded error occurs shorten the programs to fit in the task period or increase the setting of the task period Use the system defined variable in the us...

Страница 33: ...ing the CPU Unit unused again without turning ON the power even once after the Battery is replaced may result in a shorter Battery life When you replace the Battery use the CJ1W BAT01 Battery Set Inse...

Страница 34: ...EN 61131 2 and EN 61000 6 2 EMI Electromagnetic Interference EN 61131 2 and EN 61000 6 4 Radiated emission 10 m regulations z Low Voltage Directive Always ensure that devices operating at voltages of...

Страница 35: ...placed on the communications cable or other appropriate countermeasures must be pro vided external to the PLC z Recommended Ferrite Cores The following ferrite core data line noise filter is recommen...

Страница 36: ...e following noise filter must be connected to the power supply line Noise Filter Sysmac and SYSMAC are trademarks or registered trademarks of OMRON Corporation in Japan and other countries for OMRON f...

Страница 37: ...Studio z CPU Unit and CJ series Units 1 Double click CPU Expansion Racks under Configurations and Setup in the Multiview Explorer Or right click CPU Expansion Racks under Configurations and Setup and...

Страница 38: ...etup and select Edit from the menu The EtherCAT Configuration Tab Page is displayed for the Controller Configurations and Setup layer 2 Right click the master in the EtherCAT Configurations Editing Pa...

Страница 39: ...this manual W494 CJ1W SCU 2 Learning about the func tions to use Serial Commu nications Unit and Boards with NJ series configura tion hardware and serial communications mode Learning about the stan d...

Страница 40: ...ory A manual revision code appears as a suffix to the catalog number on the front and back covers of the manual Revision code Date Revised content 01 July 2011 Original production 02 March 2012 Correc...

Страница 41: ...1 3 1 Protocol Macros 1 6 1 3 2 Loopback Test 1 6 1 3 3 Serial Gateway Mode 1 6 1 3 4 No protocol Mode 1 7 1 3 5 Modbus RTU Slave Mode 1 7 1 4 Features 1 8 1 4 1 Serial Communications Units 1 8 1 4 2...

Страница 42: ...J series Unit 2 2 Data Exchange with the CPU Unit 2 3 Device Variable for CJ series Unit 2 4 System defined Variable Installing and wiring the Unit 3 Installation and Wiring Allocations of device vari...

Страница 43: ...up to 16 CPU Bus Units by one CPU Unit Serial Communications Units is abbreviated to Units in some sections of this manual A Serial Communications Unit has two communications ports to connect with ho...

Страница 44: ...way which enables connection with the following devices Connectable Devices Serial Communications Unit General purpose external device Programming Device Host computer General purpose external device...

Страница 45: ...e executed in Protocol Macro Mode Modbus ASCII Slave Mode is not supported A connection example for each serial communications mode is shown in the following sections for a Serial Communications Unit...

Страница 46: ...use CX Protocol to change the standard system protocols according to user requirements The loopback test is a testing function for communications circuits The Serial Communications Unit compares trans...

Страница 47: ...d and receive protocols are created by the user or when a Serial Communications Unit is connected to devices that only receive or send data such as bar code readers or printers Modbus RTU Slave Mode e...

Страница 48: ...d Receive Frames Matching Specifications Send frames command data and other send frames and expected receive frames response and other frames can be created and registered according to the communicati...

Страница 49: ...ex or Full duplex Transmissions The full duplex transmissions enable all the data received in a sequence to be accessed Data can also be received from a remote device while sending Full duplex transmi...

Страница 50: ...o the manual for the device 3 The maximum length is restricted to 2 m when an NT AL001 Link Adapter is connected 1 5 1 Protocol Macro Serial Gateway No protocol or Modbus RTU Slave PLC General purpose...

Страница 51: ...e manual for the device 2 The maximum length is restricted to 2 m when an NT AL001 Link Adapter is connected PLC General purpose external device Connection configuration Required devices Connected ser...

Страница 52: ...configuration Required devices Connected serial communica tions port Remarks 1 N Port RS 232C CJ1W SCU22 Port 1 or 2 CJ1W SCU42 Port 2 NT AL001 Con verting Link Adapter Converts between RS 232C and RS...

Страница 53: ...maximum branch line is 10 m PLC General purpose external device Connection configuration Required devices Connected serial communica tions port Remarks 1 N Port RS 422A 485 Connection of a Serial Com...

Страница 54: ...it Model number CJ1W SCU22 CJ1W SCU32 CJ1W SCU42 Serial communica tions ports Port 1 RS 232C RS 422A 485 RS 422A 485 Port 2 RS 232C RS 422A 485 RS 232C Protocols Port 1 You can select Protocol Macro S...

Страница 55: ...r RS 422A 485 connections Connection configuration RS 232C port 1 1 1 N N 32 units max is possible using a Converting Link Adapter RS 422A 485 port 1 N N 32 units max Maximum number of data exchange w...

Страница 56: ...a step from End sequnece completed Next proceed to the next step No Goto go to the specified step No and Abort interrupt the step and terminate the sequence Error processing Select a process following...

Страница 57: ...an be specified Desig nation method X Y X Effective address Location to read data from or to write data into Y Data size 1 to 1 000 1 X Word designa tion Read word memory used for CJ series Units to s...

Страница 58: ...er aN b a 0 to 1000 b 1 to 1000 N Repeat counter value Wild card Can be received regardless of the length only in receive mes sages Word designa tion Read word memory used for CJ series Units to send...

Страница 59: ...mands Modbus RTU commands Modbus ASCII commands Enabled serial com munications mode Serial Gateway Mode or Protocol Macro Mode Queuing functions Up to five commands can be converted and then queued fo...

Страница 60: ...start code from 00 to FF hex when you set to have one select the end code from 00 to FF hex when you set to have one and set the number of receive data bytes when you set not to have the end code Sta...

Страница 61: ...l Function Modbus name 01 Reads multiple bits from the CIO Work Holding or Auxiliary Area of memory used for CJ series Units Read Coils 02 Reads multiple bits from the CIO Area of memory used for CJ s...

Страница 62: ...uction Through network Execute using SendCmd instruction Through network Serial Gateway Serial Gateway Serial Gateway Serial Gateway Serial Gateway CompoWay F compatible Modbus com patible device incl...

Страница 63: ...tings for the Transmission Mode for Protocol Macro Mode half duplex or full duplex the maximum length of send receive data etc When the program is transferred items set here will be reflected in the d...

Страница 64: ...he unit number of the unit to be registered 4 Allocate device variables for CJ series Unit to I O ports Allocate on the I O Map View window You can use one of the following three methods to allocate t...

Страница 65: ...94 1 8 Basic Operating Procedure 1 1 8 2 Explanation of Procedure Setting Example for Protocol Macro Mode Example Set the default standard communications conditions Set Serial Communications Mode to t...

Страница 66: ...le Please do not select functions that cannot be used Errors will not be detected even if these func tions are selected or set For functions that you cannot use with NJ series refer to A 1 Differences...

Страница 67: ...es Also connect the CPU Unit and Sysmac Studio For details on the connector pin layout and the connection meth ods refer to Section 3 Installation and Wiring and refer to the relevant manuals for the...

Страница 68: ...ateway No protocol Mode and Modbus RTU Slave Mode Also perform other required processing such as setting switches on the external device s OFF 2 ON 4 TERM WIRE Serial Communications Unit Serial Commun...

Страница 69: ...ag to TRUE Then the System Settings are transferred Restart Bits indicates unit numbers Port 1 2 Settings Changing Flag indicates unit numbers Execute the communications in Serial Communications Mode...

Страница 70: ...l Communications Unit to read and store the present values of E5 N Temperature Controller by using the CompoWay F Master standard system protocol sequence No 610 Variable Area Read If the Input condit...

Страница 71: ...n Refer to CX Protocol Ver 1 9 OPERATION MANUAL Cat No W344 Transmission Line Tracing The data in the send receive messages flowing over the transmission line RS 232C or RS 422A 485 and the control co...

Страница 72: ...Refer to 9 2 Setting a Message in the CX Protocol Ver 1 9 OPERATION MANUAL Cat No W344 e Transferring the created project to a Unit Refer to 11 1 Transferring and Reading Protocol Data between the Pe...

Страница 73: ...irming operation Refer to Section 12 Tracing and I O Memory Monitoring in the CX Proto col Ver 1 9 OPERATION MANUAL Cat No W344 Transmission Line Tracing The data in the send receive messages flowing...

Страница 74: ...con dition Execute the SerialRcv or SerialRcvNoClear instruction to receive data at the Controller from the external device Include an N O input for the Reception Completed Flag _P1_NopRcvCompleteSta...

Страница 75: ...mponent Names and Functions 2 2 2 2 Data Exchange with the CPU Unit 2 8 2 2 1 Data Flow 2 8 2 2 2 How to Specify and Create Variables 2 12 2 3 Device Variable for CJ series Unit 2 14 2 3 1 Allocations...

Страница 76: ...FG OFF WIRE PORT2 0 1 2 3456 7 8 9 A B C D E F CJ1W SCU42 Port 2 RS 232C 2 wire 4 wire switch Indicators Terminating resistance switch Unit number switch Port 1 RS 422A 485 terminal block connector 2...

Страница 77: ...r Color Status Meaning RUN Green Lit Operating normally Not lit Unit hardware error RDY Green Lit Protocol macro preparations are complete Flashing Protocol macros are being prepared 1 Not lit Hardwar...

Страница 78: ...uired when the NT AL001 Link Adapter is connected For details on connection methods refer to 3 2 Wiring 4 The DR signal is used to monitor the signal cable You can also use it as a CD carrier detectio...

Страница 79: ...1 manufactured by OMRON or equivalent Hood XM2S 0911 E manufactured by OMRON or equivalent One plug and one hood are provided for each port Recommended Cables UL2464 AWG28 5P IFS RVV SB AWG28 5P IFVV...

Страница 80: ...m max multidrop connections z Terminating Resistance Switch TERM When an RS 422 485 port is used set the switch to ON if the Serial Communications Unit is on the end of the transmission line Refer to...

Страница 81: ...RD2 SCU22 RD1 SD2 RDY NO UNIT ERH SD1 PORT1 PORT2 0 1 2 3456 7 8 9 A B C D E F 31 65 90 65 81 9 31 90 2 ON 4 TERM ERC RUN RD2 TER2 SCU32 RD1 TER1 SD2 RDY NO UNIT ERH SD1 PORT1 RS422 485 RS422 485 OFF...

Страница 82: ...2 1 Data Flow Access methods from the user program AT specification destination Data exchange timing Unit data type Device variable for CJ series Unit I O port for Opera tion Data During I O refresh S...

Страница 83: ...ser defined variable Serial Communications Port Settings Change Bits CPU Bus Unit Restart Bits Status for port 1 Status for port 2 Software switch for port 1 Software switch for port 2 Setup Area for...

Страница 84: ...munications port Software switch data is stored at the I O ports for Operation Data allocated for the Serial Commu nications Unit The user program references data and operates switches via the device...

Страница 85: ...the Modbus RTU Slave Mode with a communications instruction For allocation of user defined variables refer to How to Create User defined Variables P 2 13 These variables are allocated with specific f...

Страница 86: ...for CJ series Unit In the explanations from here on the device name automatically created is used as the device variable name for CJ series Unit for example _P1_SgwDsblCmd How to Access from User Prog...

Страница 87: ...ea is set in DM within the memory area for the CJ series Unit in the Modbus RTU Slave Mode and allocated to the array variable RegData to update the 10 words DM1000 to DM1009 Each of these 10 words ca...

Страница 88: ...indicate the status of the Serial Communications Unit or error information The following subsections explain each type of data for the device variables for CJ series Unit for Serial Comunications Unit...

Страница 89: ...tem defined variable for each flag refer to 2 4 System defined Variable The usage of the System Settings differs according to the serial communications mode For details refer to the sections that expl...

Страница 90: ...ty Even Odd _P1_SerSetCfg _P2_SerSetCfg BOOL RW User specified Setting Inclu sion FALSE Default TRUE User settings Default FALSE There is no specific device variable for CJ series Unit to reference th...

Страница 91: ...top Bits 2 bits when the serial communications mode is either Host Link Protocol macro Serial Gateway or Loopback Test The default settings used for Modbus RTU Slave Mode are as follows Baud Rate 19 2...

Страница 92: ...o 300 000 ms 0000 to 7530 hex 0 to 30 000 decimal Unit 10 ms _P1_HlkCTSCtlCfg _P2_HlkCTSCtlCfg BOOL RW CTS Control 1 FALSE No TRUE Yes Default FALSE _P1_PmrSgwTimeoutCfg _P2_PmrSgwTimeoutCfg WORD RW S...

Страница 93: ...starts without checking whether the clear to send signal CTS is ON 2 Set to 200 when value of 200 or below is specified or 1 000 when value of 1 000 or above is specified _P1_PmrRBufClrCfg _P2_PmrRBu...

Страница 94: ...ies Unit to reference the send delay setting range When you set this set ting set to bits 00 to 14 of _P1_SendDelayCfg There is no specific device variable for CJ series Unit to reference the send del...

Страница 95: ...ice variable for CJ series Unit to reference the send delay setting range When you set this set ting set to bits 00 to 14 of _P2_SendDelayCfg Bit string RW Send Delay Time User specified 0 to 300 s 0...

Страница 96: ...oilsAreaCfg BYTE RW Coils Alloca tion Area 16 00 CIO default 16 B0 CIO 16 B1 WR 16 B2 HR 16 B3 AR _P1_MbsRegAreaCfg _P2_MbsRegAreaCfg WORD RW Modbus RTU Settings Bits 08 to 15 Input Regis ters Area al...

Страница 97: ...List of Device Variables for CJ series Unit for Software Switches Device variable for CJ series Unit Type R W Name Function Port 1 Port 2 _P1_SoftSw _P2_SoftSw BYTE RW Soft Switches Bit 06 Loopback te...

Страница 98: ...FALSE Protocol data nor mal _P1_SysSetSta _P2_SysSetSta WORD R System Settings 1 Bits 12 to 15 Serial Com munications Mode Bits 8 to 11 Baud rate Bit 04 Start bits Bit 03 Data length Bit 02 Stop bits...

Страница 99: ...ing status Bit 01 System Setup error Bit 00 Port operating sta tus _P1_Ser485Sta _P2_Ser485Sta BOOL R RS 422 485 setting Status Port types of each port _P _Ser485Sta _P _Ser232Sta 00 No port 01 RS232C...

Страница 100: ...exceeded 3 Bit 13 Tfr receive fin ished monitoring time exceeded 3 Bit 12 Tr receive wait monitoring time exceeded 3 Bits 08 to 11 Number of retries 3 Bit 07 FCS check error Bit 06 Command error 3 Bit...

Страница 101: ...it is changed to TRUE if a send start timeout or response timeout occurs with the Serial Gateway 6 Not used with Loopback Test Mode This bit also changes to TRUE if more than 259 bytes of unread data...

Страница 102: ...09 Sequence wait flag Bit 08 Serial Gateway prohibited flag protocol macros Bits 00 to 03 Protocol macro error code _P1_PmrExecSta _P2_PmrExecSta BOOL R Protocol Macro Executing Flag This flag is chan...

Страница 103: ...on Flag This flag is changed to TRUE when a sequence is completed for the next process or for an error process with an End com mand Note When a sequence has ended normally setting End Abort when the s...

Страница 104: ...0 to 999 _P1_PmrExecNoSta _P2_PmrExecNoSta WORD R Executed Step and Case No Bits 08 to 11 Executed Step No code Bits 00 to 03 Executed Reception Case No code _P1_PmrStepNoCode Sta _P2_PmrStepNoCode St...

Страница 105: ...TS Check Error TRUE CTS CS signal check error FALSE Normal _P1_LbtTimeoutErr _P2_LbtTimeoutErr BOOL R Timeout Error TRUE Timeout error FALSE Normal _P1_LbtParityErr _P2_LbtParityErr BOOL R Parity Erro...

Страница 106: ...lag TRUE Unit received more than the specified number of bytes FALSE Unit did not receive more than the specified number of bytes _P1_NopRcvComplet eSta _P2_NopRcvComplet eSta BOOL R Reception Complet...

Страница 107: ..._P1_MbsRespTxCntSta _P2_MbsRespTxCntSta UINT R Number of Nor mally Sent Responses The number of normal Modbus RTU responses sent to the communica tions port is stored _P1_MbsTxErrCnt _P2_MbsTxErrCnt U...

Страница 108: ...rt by using an Out instruction or another instruction you can change these flags to TRUE without changing the port system settings List of System defined Variables corresponds to the unit number z Res...

Страница 109: ...defined Variable 2 z Variables Related to the SerialSend SerialRcv and SerialRcvNoClear Instructions in No protocol Mode System defined variable Description _Port_isAvailable Network Communications I...

Страница 110: ...2 Initial Settings and Allocations of Device Variable for CJ series Unit 2 36 CJ series Serial Communications Units Operation Manual for NJ series CPU Unit W494...

Страница 111: ...5 3 2 5 Mounting Height and Connector Cover Dimensions 3 6 3 2 6 Reducing Electrical Noise for External Wiring 3 7 3 2 7 2 Wire and 4 Wire Connections 3 7 3 2 8 NT AL001 Link Adapter Settings 3 8 3 2...

Страница 112: ...ial Communications Units can be conntected to a CPU Rack or Expansion Rack In total 16 Units can be mounted to a CPU Unit as long as no other CPU Bus Unit is mounted Use the following steps to mount o...

Страница 113: ...or high voltage lines or power lines to prevent the effects of electrical noise from these lines Prevent wire clippings cutting chips or other materials from getting inside the Unit They could cause s...

Страница 114: ...ods used for each serial communications mode and Serial Communications Unit port The following table shows the relationship between the communications ports and the communications modes for the Serial...

Страница 115: ...uits are shown below Terminating Resistance Turn OFF the terminating resistance switch or externally attach terminating resistance as required by the specifi cations of the remote device 3 2 4 Connect...

Страница 116: ...When you mount the Serial Communications Unit make sure to provide space for the mounting height and connector cover dimensions shown below Note The mounting heights shown above are applicable when th...

Страница 117: ...r with grounded steel sheet metal The transmission circuits for 2 wire and 4 wire connections are different as shown in the following dia gram 3 2 6 Reducing Electrical Noise for External Wiring 3 2 7...

Страница 118: ...ys use half duplex transmissions with a 2 wire setting You can use either half duplex or full duplex transmissions with a 4 wire setting The NT AL001 Link Adapter has a DIP switch to set RS 422A 485 c...

Страница 119: ...ommunications distance some times depend on the remote device Confirm the baud rates and communications distance supported by connected devices 3 Here the maximum cable length is limited to 2 m when a...

Страница 120: ...he baud rate and the communications distance sometimes depend on the remote device Confirm the baud rates and communications distance sup ported by connected devices 3 Here the maximum cable length is...

Страница 121: ...ance noise resistance For details on wiring meth ods refer to 3 3 RS 232C and RS 422A 485 Wiring z Connections to E5CK Temperature Controller z Connections to Personal Computer Connecting RS 232C Port...

Страница 122: ...5 6 7 8 9 FG SD RD RS CS 5V DR ER SG 1 2 3 4 5 6 7 8 9 Computer RD SD ER SG DR RS CS 1 2 3 4 5 6 7 8 9 FG SD RD RS CS 5V DR ER SG Serial Communications Unit RS 232C port NT AL001 Link Adapter RS 232C...

Страница 123: ...nual for NJ series CPU Unit W494 3 2 Wiring 3 3 2 9 Connections for Protocol Macro Serial Gateway No protocol Mode and Modbus RTU Slave Mode z Connections to a Modem Modem Serial Communica tions Unit...

Страница 124: ...nal Pin Signal Pin D sub 9 pin connector male D sub 9 pin connector male Device that supports RS 422A 485 communications 2 wire Signal Signal RS 422A 485 interface RS 422A 485 interface Signal Pin Ser...

Страница 125: ...Shield Signal RS 422A 485 in terface RS 422A 485 in terface RS 422A 485 in terface 1 2 3 4 5 RDA RDB SDA SDB FG SDA SDB RDA RDB 1 2 3 4 5 RDA RDB SDA SDB FG Terminal block connector RS 422A 485 in te...

Страница 126: ...r face RS 422A 485 Inter face Signal Signal Device that supports RS 422A 485 communications 2 wire Device that supports RS 422A 485 communications 2 wire Terminal block connector RS 422A 485 Inter fac...

Страница 127: ...resistance SW1 3 OFF SW1 4 OFF SW1 5 OFF SW1 6 ON Signal Pin Serial Communications Unit RS 422A 485 in terface Signal Pin D sub 9 pin connector male Signal 5 V power D sub 9 pin connector male RS 232...

Страница 128: ...mmunications Units Operation Manual for NJ series CPU Unit W494 Connect the communications ports as shown below 3 2 10 Connections in Loopback Test RS 422A 485 port RDA RDB SDA SDB FG 1 2 3 4 5 Pin Si...

Страница 129: ...less The Shell FG is internally connected to the ground terminal GR on the Power Supply Unit via the CPU Rack or Expansion Rack Therefore ground the ground terminal GR on the Power Supply Unit to grou...

Страница 130: ...CPU Rack or Expansion Rack to 100 or less 3 Always turn ON the terminating resistance at the end node of the RS 422A 485 line Precautions for Correct Use Precautions for Correct Use Always ground the...

Страница 131: ...FG 1 2 3 4 5 A B FG Serial Communications Unit Pin Remote device Signal Signal Shield RDA RDB SDA SDB FG 1 2 3 4 5 RDA RDB SDA SDB FG Serial Communications Unit Pin Remote device Signal Signal Shield...

Страница 132: ...m the cable by using a knife Be careful not to scratch the braided shield 3 Trim off the braided shield by using scissors so that the remaining shield length is 10 mm 4 Remove the insulation from each...

Страница 133: ...ided shield by using scissors 4 Remove the insulation from each conductor by using a stripper so that the exposed conductor length is 5 mm 5 Wrap adhesive tape around the conductor from which the brai...

Страница 134: ...CPU Unit W494 4 Return the heat shrinking tube to the soldered portion then heat the tube to shrink it in place Assemble the connector hood as shown below 3 3 5 Assembling Connector Hood Heat shrinkin...

Страница 135: ...the braided shield 2 Carefully remove the shield and twist it Carefully trim away any unnecessary cable packing and conductors 3 Strip the signal lines to the correct length for the ferrules Cover the...

Страница 136: ...errules hold down the orange knob with a small flat blade screw driver or similar object 6 Connect the connector with the communications cable attached to it to the connector on the Unit Then tighten...

Страница 137: ...e Method for Link Words 4 10 4 2 Device Variables for CJ series Unit and System defined Variables Protocol Macro Mode 4 13 4 2 1 Device Variable for CJ series Unit for System Settings 4 13 4 2 2 Area...

Страница 138: ...Ver 1 9 OPERATION MANUAL Cat No W344 The following three methods are available to use the protocol macros z Using the Standard System Protocols It is possible to connect OMRON devices and the NJ seri...

Страница 139: ...ol that contains the communications specifications for the general purpose external device transfer these specifications to the Serial Communications Unit and execute the ExecPMCR instruction Modifyin...

Страница 140: ...s each of which consists of a send receive control command send receive message processing result and a next step that depends on the processing results For example with a sequence that reads the proc...

Страница 141: ...rame ters Control methods such as flow control Link words Settings for words shared between the PLC and the Serial Communications Unit Monitoring time Monitoring time for send receive processing Respo...

Страница 142: ...he expected receive message for Send Recv Reception matrix A group of expected messages that you can use to switch to different next processes when Send or Send Recv is used Repeat counter The number...

Страница 143: ...nd wait time Send message SD MEM_R Receive message RV MEM_R Response write enable Write Next process End Error process Abort Send message SD MEM_R Header h STX Terminator t ETX Error check code c LRC...

Страница 144: ...on protocol for digital temperature controller E5 N Send message Receive message For message details refer to the E5CN E5AN E5EN E5GN Digital Temperature Controllers Commu nications Manual Basic Type...

Страница 145: ...CX Protocol Ver 1 9 OPER ATION MANUAL Cat No W344 Refer to the standard protocol file that are included in the CX Proto col for the settings in the standard system protocols Setting Device Variables f...

Страница 146: ...es not synchronized with the CPU Unit cycle This is called on request I O refreshing Level Item Possible changes in settings Sequence parameters Transmission control parameters Setting change unnecess...

Страница 147: ...piled immediately based on data read from the Unit and the message is sent Therefore the actual message transmission is performed immediately when the Send command is executed without waiting for the...

Страница 148: ...in the I O refresh period before it will be sent by the Send command 2 Data received by a Receive command in a protocol macro may not be reflected in the receive data area of the CPU Unit if executio...

Страница 149: ...tions mode 6 hex Protocol macro Bit 04 Start bits Bit 03 Data length Bit 02 Stop bits Bit 01 Parity Yes No Bit 00 Parity Even Odd _P1_SerSetCfg _P2_SerSetCfg BOOL RW User specified Setting Inclu sion...

Страница 150: ...1 to 255 0 1 to 25 5 s Unit 100 ms _P1_PmrSgwSendTi meoutCfg _P2_PmrSgwSendTi meoutCfg USINT RW Serial Gateway Send Start Tim eout Monitor ing Time 0 5 s default Range 1 to 255 0 1 to 25 5 s Unit 100...

Страница 151: ...ecified for the port settings the number of Start Bits Data Length number of Stop Bits Parity and Baud Rate must be set The Start Bits setting however will be ignored and 1 start bit will always be us...

Страница 152: ...duplex transmission there is a time lag t1 between data send processing completion and Send completion Therefore if there is a rapid response from the remote device and a response is returned for Send...

Страница 153: ...clear the reception buffer 3 Although the received data is discarded until completion of Send execution it is reflected in the character trace Transmission mode Time reception buffer cleared Data rece...

Страница 154: ...occur after the Send command is executed until the actual message is sent when this method is used TRUE Continuous I O refreshing Cyclic refresh mode During protocol macro execution I O refreshing is...

Страница 155: ...eception buffer is analyzed and a search is performed for data matching an expected message registered with the Receive command 4 When matching data is found the RTS RS signal is turned OFF The search...

Страница 156: ...reception buffer 3 The data in the reception buffer is analyzed and a search is performed for data matching an expected message registered with the Recv command 4 When matching data is found all the p...

Страница 157: ...t settings and to restart the communi cations port at the same time Accordingly in cases where these flags are turned from FALSE to TRUE only to restart a communications port by using an Out instructi...

Страница 158: ...Bit 02 One shot Trace Switch Bit 01 Continuous Trace Switch Bit 00 Wait Release Switch _P1_SgwDsblCmd _P2_SgwDsblCmd BOOL RW Serial Gateway Prohibit Switch Protocol Mac ros TRUE FALSE Not pro hibited...

Страница 159: ...t manipulate these switches from a user program Name Device vari able for CJ series Unit Meaning Timing Initialize Set Reset Serial Gate way Prohibit Switch Pro tocol Macros _P1_SgwDsbl Cmd _P2_SgwDsb...

Страница 160: ...it to reference the serial communica tions mode When you reference this setting status ref erence bits 12 to 15 of _P1_SysSetSta There is no specific device variable for CJ series Unit to reference th...

Страница 161: ...atus TRUE Terminating resis tance ON FALSE Terminating resis tance OFF _P1_SysSetupErr _P2_SysSetupErr BOOL R System Setup error TRUE System Setup error FALSE System Setup normal _P1_OperatingSta _P2_...

Страница 162: ...toring Time Exceeded TRUE Tfr receive fin ished monitoring time exceeded FALSE Normal _P1_TrErr _P2_TrErr BOOL R Tr Receive Wait Monitor ing Time Exceeded TRUE Tr receive wait monitoring time exceede...

Страница 163: ...in the Protocol Macro Mode but then communications are recovered within the specified number of retries the bit will become FALSE The bit will remain TRUE if recov ery is not possible within the speci...

Страница 164: ...transfer Use the CX Protocol to transfer protocol data again At error When the error is cleared after protocol data is resent System Setup error _P1_SysSetup Err _P2_SysSetup Err This variable changes...

Страница 165: ...RSta DR _P1_SigDRSta _P2_SigDRSta CS _P1_SigCSSta _P2_SigCSSta RS _P1_SigRSSta _P2_SigRSSta The status of each transmission control signal DTR ER DSR DR CTS CS RTS RS for each port is always read TRUE...

Страница 166: ...when the reception buffer is full the receive data will overwrite the 2 5 KB of previously received data in the buffer Therefore always use flow control when the Unit receives a large amount of data i...

Страница 167: ...When Recv is executed the expected receive message is searched for in the reception buffer If the error information is included in the received data the corresponding error flags will change to TRUE...

Страница 168: ...g Bit 08 Serial Gateway Prohibited Flag protocol macros Bits 00 to 03 Protocol Macro Error Code _P1_PmrExecSta _P2_PmrExecSta BOOL R Protocol Macro Executing Flag This flag changes to TRUE when a Exec...

Страница 169: ...flag is changed to TRUE when a sequence is completed for the next process or for an error process with an End com mand Note When a sequence ends normally set ting End Abort when the sequence ends abn...

Страница 170: ...00 to 03 of _P2_PmrSta Bit string R Protocol Macro Error Code 0 No error 2 Sequence No error 3 Data read write area exceeded error 4 Protocol data syntax error _P1_PmrCommSeqNoSt a _P2_PmrCommSeqNoSt...

Страница 171: ...Repeat Counter Bits 08 to 15 Repeat Counter Setting Value Bits 00 to 07 Repeat Counter Present Value _P1_PmrSetRepCntS ta _P2_PmrSetRepCntS ta USINT R Repeat Counter Set ting Value The number of times...

Страница 172: ...p ended abnormally FALSE Step ended normally When ver ification error occurs after receiving When sequence starts Abort Flag _P1_PmrAbtSta _P2_PmrAbtSta This flag is changed to FALSE when process ing...

Страница 173: ...a and _P2 _PmrSta The contents of the error codes are shown in the following table No codes other than the above are used When an error occurs the error code is held until the next sequence starts The...

Страница 174: ...reception matrix is set for the Recv or Send Recv command If a reception matrix is not set or when other command is executed the case number will be set to FALSE cleared When matrix is received When...

Страница 175: ...4 2 Device Variables for CJ series Unit and System defined Variables Protocol Macro Mode 4 4 2 6 Protocol Status Precautions for Correct Use Precautions for Correct Use Data read write area exceeded e...

Страница 176: ...Recv Data 0 specified before execution of the ExecPMCR instruction is read from the reception buffer and stored again following RecvData 1 This ensures that the current data will not be cleared to 0...

Страница 177: ...d Area Although the size is set for word array SendData 0 user defined variable set a value that includes the storage area of that size z DstDat Send Data Array Starting Element Specifies the word arr...

Страница 178: ...F WORD four words The details of send receive word allocation for Sequence No 610 Variable Area Read are shown below In this example the details of send data SendData and receive data RecvData are as...

Страница 179: ...le Item Description of this example Value RecvData 0 Number of receive data words Data of 4 words of Recv Data 0 to RecvData 3 are received WORD 16 0004 RecvData 1 Response code WORD 16 0000 is return...

Страница 180: ...e sure the settings match the corresponding settings at the destination The default settings are Baud Rate 9 600 bps Start Bits 1 bit Data Length 7 bits Parity Even parity and Stop Bits 2 bits Example...

Страница 181: ...Data type Factory setting Comments Details _Port_isAvailable BOOL Network Communica tions Instruction Enabled Flag This flag becomes TRUE when there are internal logic ports available FALSE when ther...

Страница 182: ...E when a ExecPMCR instruction sequence is executed This flag becomes FALSE when the sequence is completed either when it is ended by End or when it is ended by Abort SCU_P1_PmrSeqEn dSta BOOL IOBus ra...

Страница 183: ...dData 0 WORD 16 0005 4 SendData 1 WORD 16 0003 5 SendData 2 WORD 16 C000 6 SendData 3 WORD 16 0000 7 SendData 4 WORD 16 0001 8 RecvData 0 WORD 16 0004 Operating SCU_P1_PmrExecSta SCU_P1_PmrSeqEndSta S...

Страница 184: ...sAvailable BOOL Network Communica tions Instruction Enabled Flag This flag becomes TRUE when there are internal logic ports available FALSE when there is no internal logic port available Name Data typ...

Страница 185: ...Flag This flag becomes TRUE when a ExecPMCR instruction sequence is executed This flag becomes FALSE when the sequence is completed for the next process or for an error process with an Abort command S...

Страница 186: ...nitNo _CBU_No02 Serial Communications Unit Unit number 2 InPort PhysicPortNo USINT 1 Port number 1 SendData 0 WORD 16 0005 SendData 1 WORD 16 0003 SendData 2 WORD 16 C000 SendData 3 WORD 16 0000 SendD...

Страница 187: ...O_DINT SHL WORD_TO_DWORD RecvData 3 16 OR WORD_TO_DWORD RecvData 2 State INT 0 END_IF IF State INT 5 THEN Processing at error completion State INT 0 END_IF Sequence executed Sequence completed Sequenc...

Страница 188: ...ng the number of data words to be retained If 0 or 1 is specified the last receive data will not be retained and all data will be cleared to 0 Example Protocol that executes communications sequence on...

Страница 189: ...Unit 4 If writing the response data is specified the data in the reception buffer up to the last data excluding the first word will be stored in the memory area used for CJ series Units from RecvData...

Страница 190: ...ample 2 Sequence Step No 01 Step No 02 Error Sequence ended abnormally Sequence ended normally Sequence ended normally When the sequence ends normally Sequence executed Sequence completed Sequence re...

Страница 191: ...e Precautions for Safe Use You can use the Abort Switch to abort the sequence that is being executed After changing the Abort switch from FALSE to TRUE from the user program the system change the swit...

Страница 192: ...4 Using Protocol Macros 4 56 CJ series Serial Communications Units Operation Manual for NJ series CPU Unit W494...

Страница 193: ...defined Variable 5 8 5 2 3 Device Variable for CJ series Unit for Software Switches 5 9 5 2 4 Device Variable for CJ series Unit for Status 5 9 5 3 Using the Serial Gateway 5 12 5 3 1 Setting Device...

Страница 194: ...Serial Gateway Mode is set as the serial communications mode When Protocol Macro Mode is set as the serial communications mode and the Serial Gateway Pro hibit Switch is OFF The serial gateway is also...

Страница 195: ...s CPU Unit and personal computer The Serial Gateway function can also be executed in the Protocol Macro Mode While the Serial Com munications Mode is set to Protocol Macro Mode change the Serial Gate...

Страница 196: ...nications sequence If the next step is a receive command however the Serial Gateway will not be executed and will be delayed Under all other conditions the serial gateway is executed immediately Note...

Страница 197: ...ications mode 9hex Serial Gateway Mode Bit 04 Start bits Bit 03 Data length Bit 02 Stop bits Bit 01 Parity Yes No Bit 00 Parity Even Odd _P1_SerSetCfg _P2_SerSetCfg BOOL RW User specified Setting Incl...

Страница 198: ...SendDelayCfg There is no specific device variable for CJ series Unit to reference the send delay setting range When you set this set ting set to bits 00 to 14 of _P2_SendDelayCfg Bit string RW Send De...

Страница 199: ...04 and the Baud Rate Setting example 0900 hex Serial Gateway Mode using default settings for Port Settings and Baud Rate z Serial Communications Mode Serial Gateway Mode is used so set to 9 hex z Sta...

Страница 200: ...ns Unit ports by changing these flags from FALSE to TRUE with an Out instruction These flags will automatically turn to FALSE when the settings are changed and the communications ports are restarted T...

Страница 201: ...otocol Mac ros TRUE FALSE Not pro hibited FALSE TRUE Prohib ited 5 2 4 Device Variable for CJ series Unit for Status Device variable for CJ series Unit Type R W Name Function Port 1 Port 2 _Com_UnitSt...

Страница 202: ...it _P1_ParityYNSta _P2_ParityYNSta BOOL R Parity Yes No FALSE Yes TRUE No _P1_ParityBitSta _P2_ParityBitSta BOOL R Parity Even Odd FALSE Even TRUE Odd _P1_HwSetSta _P2_HwSetSta WORD R Hardware Set tin...

Страница 203: ..._P1_SigERSta _P2_SigERSta BOOL R ER Signal TRUE High FALSE Low _P1_SigDRSta _P2_SigDRSta BOOL R DR Signal TRUE High FALSE Low _P1_SigCSSta _P2_SigCSSta BOOL R CS Signal TRUE High FALSE Low _P1_SigRSS...

Страница 204: ...Port 1 Port 2 _P1_PortCfg _P2_PortCfg WORD RW Port Settings Serial communications mode bits 11 to 08 9 hex Serial Gateway Mode Bits 00 to 04 Set the serial communications conditions to match the proto...

Страница 205: ...ns conditions to match the protocol at the conversion desti nation _P1_BaudrateCfg _P2_BaudrateCfg USINT RW Baud Rate unit bps Baud rate Set to match the protocol at the conversion desti nation _P1_Se...

Страница 206: ...e Manual Cat No W502 Device variable for CJ series Unit Type R W Name Function Port 1 Port 2 _P1_SgwDsblCmd _P2_SgwDsblCmd BOOL RW Serial Gateway Prohibit Switch Protocol Macros TRUE FALSE Not prohibi...

Страница 207: ...ined before or when creating a program 5 3 3 Using the Serial Gateway Function When Protocol Macros Are Executed Name Setting target Setting Unit Configuration CPU Expansion Racks in Con figuration an...

Страница 208: ...is ended by End or when it is ended by Abort SCU_P1_Pmr SeqEndSta BOOL IOBus rack 0 slot 0 P1_PmrSta P1_Pmr SeqEndSta Port 1 Sequence End Completion Flag This flag becomes TRUE when a sequence is com...

Страница 209: ...dition check ExecPMCR_instance Done ExecPMCR_instance ExecPMCR Execute Port SeqNo SrcDat DstDat Done Busy Error ErrorID DstDat Inport xxx SendData 0 RecvData 0 ErrorIDEx OperatingEnd Operating ExecPMC...

Страница 210: ...nstruction Enabled Flag This flag becomes TRUE when there are internal logic ports available This flag becomes FALSE when there is no inter nal logic port available Name Data type Factory setting Allo...

Страница 211: ...S eqEndSta BOOL IOBus rack 0 slot 0 P1_PmrSta P1_Pmr SeqEndSta Port 1 Sequence End Completion Flag This flag becomes TRUE when a sequence is com pleted for the next pro cess or for an error process wi...

Страница 212: ...nstance Busy TRUE THEN State INT 2 END_IF END_IF Communication parameters settings and ExecPMCR instruction initialization IF State INT 2 THEN InPort UnitNo _eUnitNo _CBU_No02 Serial Communications Un...

Страница 213: ...ExecPMCR FALSE Clearing the workpiece indicating end of execution of the protocol macro State INT 4 END_IF IF ExecPMCR_instance Error TRUE THEN State INT 6 END_IF END_IF Checking for ExecPMCR instruct...

Страница 214: ...F command is sent to serial port after its header is removed CompoWay F command OMRON Compo nent e g Temper ature Controller Digital Panel Indi cator or Smart Sensor Converting to Modbus RTU 2804 hex...

Страница 215: ...re Controllers E5ZN Timer Counters Timers Counters H8GN G components Digital Panel Indica tors Voltage Current Panel Meters K3HB X High speed Response Digi tal Panel Meters K3HB S Load Cell mv Meters...

Страница 216: ...ated and set as follows When port 1 is used Unit address BYTE 16 80 BYTE 16 04 Unit number hexa decimal When port 2 is used Unit address BYTE 16 81 BYTE 16 04 Unit number hexa decimal 2 The contents o...

Страница 217: ...vices at either end of the RS 422A 485 transmission path Set the ter minating resistance of this Unit by using Terminating resistance ON OFF switch located on the front panel of the Unit 5 4 3 CompoWa...

Страница 218: ...d Message after conversion Modbus RTU command Examples of Modbus RTU Slave OMRON Devices 1 N RS 485 Connection Example Using RS 422A 485 Port 5 4 4 Converting to Modbus RTU Type Model series Inverters...

Страница 219: ...ate value is calculated and set as follows When port 1 is used Unit address BYTE 16 80 BYTE 16 04 Unit number hexa decimal When port 2 is used Unit address BYTE 16 81 BYTE 16 04 Unit number hexa decim...

Страница 220: ...TE 16 80 BYTE 16 04 Unit number hexa decimal When port 2 is used Unit address BYTE 16 81 BYTE 16 04 Unit number hexa decimal 2 The contents of the Modbus ASCII command enclosed in the message that is...

Страница 221: ...processing flow are as follows z Protocol Macro Priority over Serial Gateway When the Serial Gateway is enabled during protocol macro mode and a command is received and if the command in the next step...

Страница 222: ...e step that was suspended Precautions for Safe Use If a multiple frame command protocol macro is sent during protocol macro execution set the Serial Gateway Mode status to Prohibited To do so make con...

Страница 223: ...Protocol Macro Mode Only During Protocol Macro Mode the time from when the command is received until it is converted and starts to send can be monitored The default is 5 s The setting range for a use...

Страница 224: ...tion of the command or change the communications sequence z Serial Gateway Send Delay Serial Gateway Mode Protocol Macro Mode Use the send delay function to prevent immediate transfer of a command to...

Страница 225: ...mmand to the command storage area by using SendCmd in frame order without creating empty bytes the SID component of the CompoWay F command requires 1 byte of ASCII as 30 hex so set the subsequent comp...

Страница 226: ...II code 2 bytes Response MRES SRES ASCII code 4 bytes Text ASCII code Sub address 00 ASCII code 3030 hex etc Command MRC SRC ASCII code 4 bytes Text ASCII code Response MRES SRES ASCII code 4 bytes ET...

Страница 227: ...ee note Slave address 1 byte Command FUNCTION code 1 byte Communications data n bytes Error check CRC 1 byte Command end code Frame after Conversion Modbus RTU command section only FUNCTION code 1 byt...

Страница 228: ...ode n characters LF 0A hex Slave address ASCII code 2 characters 2 bytes Frame after Conversion SRC Etc LRC 2 ASCII characters 2 bytes Frame before Conversion Modbus ASCII frame Header ASCII code 3A h...

Страница 229: ...Device Variables for CJ Series Unit for System Settings 6 5 6 2 2 System defined Variable 6 8 6 2 3 Device Variable for CJ series Unit for Software Switches 6 8 6 2 4 Device Variable for CJ series Un...

Страница 230: ...of the data and end code at the end of the data or specifying the number of receive data bytes is possible before sending receiving It is also possible to control the RS and CS and other control sign...

Страница 231: ...s during reception Set the number of receive data bytes between 1 and 256 bytes using Sysmac Studio or device variables for CJ series Unit when frame structure 1 or 2 above is used Sending messages Se...

Страница 232: ...fe Use If the system executes a no protocol instruction to a serial communications port which is set for a Serial Communications Mode other than No protocol Mode an instruction error will occur Connec...

Страница 233: ...ocol Mode Bit 04 Start bits Bit 03 Data length Bit 02 Stop bits Bit 01 Parity Yes No Bit 00 Parity Even Odd _P1_SerSetCfg _P2_SerSetCfg BOOL RW User specified Setting Inclu sion FALSE Default TRUE Use...

Страница 234: ...of _P1_SendDelayCfg There is no specific device variable for CJ series Unit to reference the send delay setting range When you configure this setting set to bits 00 to 14 of _P2_SendDelayCfg Bit strin...

Страница 235: ...ts 2 When CTS control is enabled the request to send signal RTS turns ON and the transmission starts after the clear to send signal CTS turns ON When CTS control is disabled the request to send signal...

Страница 236: ...in the No protocol Mode These variable are used for data input from the Serial Communications Unit to the CPU Unit Use these variables to reference the port settings the communication status the trans...

Страница 237: ...0 There is no specific device variable for CJ series Unit to reference the baud rate When you reference this setting status ref erence bits 08 to 11 of _P1_SysSetSta There is no specific device variab...

Страница 238: ...TR ER signal Bit 06 DSR DR signal Bit 04 CTS CS signal Bit 03 RTS RS signal _P1_RmtBusySta _P2_RmtBusySta BOOL R Remote Unit Busy TRUE Remote Unit busy Flow control FALSE Remote Unit ready to receive...

Страница 239: ...FramingErr _P2_FramingErr BOOL R Framing Error TRUE Framing error FALSE Normal _P1_ParityErr _P2_ParityErr BOOL R Parity Error TRUE Parity error FALSE Normal 6 2 5 Device Variable for CJ series Unit f...

Страница 240: ...e is 16 OD CR z Unit Settings Make sure the settings match the corresponding settings at the destination 6 3 1 System Settings 6 3 2 Instruction Execution Methods Sending from Controller to External D...

Страница 241: ...e Data type Factory setting Comments Details _Port_isAvailable BOOL Network Communications Instruction Enabled Flag This flag is TRUE when there are internal logical ports available FALSE when there i...

Страница 242: ...unications parameters settings SerialSend_instance Done Trigger Operating SerialSend_instance InPort Port Execute SendDat 0 SrcDat UINT 5 SendSize Busy Done Error ErrorID ErrorIDEx _Port_isAvailable B...

Страница 243: ...nitialization StringToAry In READ AryOut SendDat 0 InPort UnitNo _eUnitNo _CBU_No00 Serial Communications Unit Unit number 0 InPort PhysicPortNo USINT 2 Serial port 2 OperatingStart FALSE END_IF Seria...

Страница 244: ...end code is 16 OD CR z Unit Settings Make sure the settings match the corresponding settings at the destination Receiving by Controller from External Device Name Setting target Setting Unit Configura...

Страница 245: ...unit configuration is created Name Data type Factory setting Comments Details _Port_isAvailable BOOL Network Communications Instruction Enabled Flag This flag is TRUE when there are internal logical p...

Страница 246: ...y Done Error ErrorID ErrorIDEx RcvSize _Port_isAvailable Barcode_P2_NopRcvCompleteSta SerialRcv_instance Busy Operating Operating RS_instance OperatingEnd RS Set Q1 Reset1 OperatingEnd SerialRcv_insta...

Страница 247: ...a type Factory setting Comments Details _Port_isAvailable BOOL Network Communications Instruction Enabled Flag This flag is TRUE when there are internal logical ports available FALSE when there is no...

Страница 248: ...al port 2 OperatingStart FALSE END_IF SerialRcv instruction execution IF Operating TRUE THEN SerialRcv_instance Execute TRUE Start condition Port InPort Port specification Size UINT 13 Receive data si...

Страница 249: ...uction processing is therefore per formed in peripheral servicing To achieve this sometimes multiple cycles are required after the instruction is executed until the received data is stored in I O memo...

Страница 250: ...6 No protocol Mode 6 22 CJ series Serial Communications Units Operation Manual for NJ series CPU Unit W494...

Страница 251: ...cating with NJ series CPU Units Using Modbus 7 3 7 2 Device Variables for CJ series Unit and System defined Variables Modbus RTU Slave Mode 7 5 7 2 1 Device Variable for CJ series Unit for System Sett...

Страница 252: ...nly the Modbus RTU Slave Mode is supported The Modbus ASCII Slave Mode is not sup ported by the Serial Communications Units 1 Modbus ASCII Mode is not supported 2 The data length is fixed at 8 bits an...

Страница 253: ...2 2 2 How to Specify and Create Variables Refer to 7 2 Device Variables for CJ series Unit and System defined Variables Modbus RTU Slave Mode for the setting allocation areas using system settings Re...

Страница 254: ...esses in the NJ series CPU Unit start from 0 Refer to Allocation Areas for Coils Input Registers and Holding Registers in 7 2 Device Variables for CJ series Unit and System defined Variables Modbus RT...

Страница 255: ...ortCfg _P2_PortCfg WORD RW Port Settings Bit 15 User specified setting inclu sion Bits 08 to 11 Serial communica tions mode A hex Modbus RTU Slave Bit 01 Parity Yes No Bit 00 Parity Even Odd _P1_SerSe...

Страница 256: ...Modbus RTU Slave Address Range 1 to 247 Default 0 _P1_MbsCoilsAreaCfg _P2_MbsCoilsAreaCf g BYTE RW Coils Alloca tion Area 16 00 CIO area default 16 B0 CIO area 16 B1 Work area 16 B2 Holding area 16 B3...

Страница 257: ...x between 1 and F7 hex z Allocation Areas for Coils Input Registers and Holding Registers You can set the memory used for CJ series Unit of the CPU Unit of the NJ series Controller that cor responds t...

Страница 258: ...time Accordingly in cases where these flags are changed to TRUE only to restart a communica tions port by using an Out instruction or another instruction change these flags to TRUE without changing th...

Страница 259: ...Bit 04 Start bits Bit 03 Data length Bit 02 Stop bits Bit 01 Parity Yes No Bit 00 Parity Even Odd There is no specific device variable for CJ series Unit to ref erence the serial communications mode...

Страница 260: ...ing Sta tus TRUE Terminating resistance ON FALSE Terminating resistance OFF _P1_SysSetupErr _P2_SysSetupErr BOOL R System Setup error TRUE System Setup error FALSE System Setup normal _P1_OperatingSta...

Страница 261: ...ssion error FALSE No transmission error _P1_FCSErr _P2_FCSErr BOOL R FCS Check Error 4 TRUE FCS check error FALSE FCS check normal _P1_OverRunErr _P2_OverRunErr BOOL R Overrun Error TRUE Overrun error...

Страница 262: ...ings Change Bits z Communications Status The status of the following transmission control signals is stored DTR signal DSR signal CTS sig nal and RTS signal TRUE High FALSE Low z Transmission Error St...

Страница 263: ...ost computer e g personal computer for a trans mission error or other communications errors 7 3 1 Supported Modbus RTU Commands Function code hexadecimal Function Modbus name 01 Reads multiple bits fr...

Страница 264: ...Data Function Code 1 byte 01 hex Starting Address 2 bytes 0000 to FFFF hex Quantity of Coils 2 bytes 0001 to 03E8 hex 1 to 1000 Length Data Function Code 1 byte 01 hex Byte Count 1 byte N Coil Status...

Страница 265: ...de 1 byte 02 hex Starting Address 2 bytes 0000 to 13FF hex Quantity of Coils 2 bytes 0001 to 03E8 hex 1 to 1000 Length Data Function Code 1 byte 02 hex Byte Count 1 byte N Coil Status n byte n N or N...

Страница 266: ...bytes 0000 to 7FFF hex Quantity of Regis ters 2 bytes 0001 to 007D hex Length Data Function Code 1 byte 03 hex Byte Count 1 byte N 2 Register Value N 2 bytes Request Response Data Data Function Code...

Страница 267: ...unction Code 1 byte 04 hex Starting Address 2 bytes 0000 to 17FF hex Quantity of Regis ters 2 bytes 0001 to 007D hex Length Data Function Code 1 byte 04 hex Byte Count 1 byte N 2 Register Value N 2 by...

Страница 268: ...Value 2 bytes 0000 hex OFF or FF00 ON Length Data Function Code 1 byte 05 hex Output Address 2 bytes 0000 to FFFF hex Output Value 2 bytes 0000 hex or FF00 Request Response Data Data Function Code 05...

Страница 269: ...e Register Length Data Function Code 1 byte 06 hex Register Address 2 bytes 0000 to 7FFF hex Register Value 2 bytes 0000 to FFFF hex Length Data Function Code 1 byte 06 hex Register Address 2 bytes 00...

Страница 270: ...agnostic Length Data Function Code 1 byte 08 hex Sub function Code 2 bytes 0000 hex Data N 2 bytes Length Data Function Code 1 byte 08 hex Sub function Code 2 bytes 0000 hex Data N 2 bytes Request Res...

Страница 271: ...ess 2 bytes 0000 to FFFF hex Quantity of Output 2 bytes 0001 to 07B0 hex Request Response Data Data Function Code 0F hex Function Code 0F hex Starting Address H 00 hex Starting Address H 00 hex Starti...

Страница 272: ...4 3 2 1 0 DM1000 3 A C 5 DM1001 9 7 1 3 Error Format Length Data Function Code 1 byte Function code 80 hex Exception Code 1 byte Error code Error code Name Description 01 Illegal function There is an...

Страница 273: ...k tests to check the serial ports 8 1 Executing Loopback Tests 8 2 8 1 1 Overview 8 2 8 1 2 Connection Method 8 2 8 1 3 Procedure 8 2 8 1 4 Indicators Used for the Loopback Test 8 3 8 2 Device Variabl...

Страница 274: ...f the port to be used to execute the loopback test See 8 1 2 Connec tion Method for details 2 Set the serial communications mode to Loopback Test F hex using the applicable CJ series Unit Device Varia...

Страница 275: ...will flash Use the Loopback Test Status in the Protocol Status to check whether or not the test is executed normally Port 1 SD1 RD1 indicator Port 2 SD2 RD2 indicator System defined variable Type R W...

Страница 276: ...r CJ series Unit to refer ence the serial commu nications mode When you set this set ting set to bits 08 to 11 of _P1_PortCfg There is no specific device variable for CJ series Unit to refer ence the...

Страница 277: ...10 115200 11 230400 Default 0 8 2 2 Device Variables for CJ Series Unit for Status Device variable for CJ series Unit Type R W Name Function Port 1 Port 2 _P1_LbtSta _P2_LbtSta WORD R Loopback Test S...

Страница 278: ...he test execution count is cleared at startup If the number of tests is counted to 65535 the value of the count will remain at 65535 but testing will con tinue _P1_LbtTestErrCntSta _P2_LbtTestErrCntSt...

Страница 279: ...ro Mode 9 4 9 3 2 No protocol Mode 9 10 9 3 3 Protocol Macros 9 16 9 3 4 Modbus RTU Slave Mode 9 22 9 4 Error Logs 9 25 9 4 1 Error Log Data 9 25 9 4 2 Error Contents and Details 9 26 9 4 3 Error Code...

Страница 280: ...when the Serial Communications Unit is mounted to another CPU Unit replace the Unit Not lit Not lit Not lit Not lit The Power Supply Unit power supply reception is not normal The Serial Communication...

Страница 281: ...e problem persists even if the power supply is cycled replace the Unit _Com_UnitPmrDatErr Protocol Data Error A protocol data checksum error occurred If the error persists when protocol data is retran...

Страница 282: ...o protocol Mode 0401 hex undefined command 2 hex F hex or 3 hex Serial Gate way com mand was sent Host Link 0205 hex response tim eout etc 0 hex or 5 hex The Unit can not convert the received via CPU...

Страница 283: ...p transition in the communica tions sequence of the protocol macro is sus pended for either of the following reasons The next step is a Receive com mand The Wait com mand is being executed Correct the...

Страница 284: ...s A remote device that can receive the command after conversion does not exist at the specified command desti nation address Check the device at the specified command desti nation address The sent com...

Страница 285: ...ponse is not always returned 0205 hex response tim eout occurs sometimes _P1 orP2 _Tra nsErr _P1 orP2 _ OverRunErr _P1 orP2 _Fra mingErr _P1 orP2 _Par ityErr Transmission Error Overrun Error Framing E...

Страница 286: ...A Serial Gateway response timeout occurred but the response data was received normally after the timeout This occured because the _P1 orP2 _PmrSgw RespTimeoutCfg Serial Gateway Response Timeout Monit...

Страница 287: ...t to TRUE assume that the Serial Gateway gener ated a response timeout and take the appropriate actions 06 Transmis sion line error _P1 orP2 _FCSErr FCS Check Error or _P1 orP2 _ParityErr Parity Error...

Страница 288: ...r than No protocol Mode Bits 12 to 15 Serial communica tions mode of P1 orP2 _SysSetSta are set to a value other than 3 hex The serial communi cations mode is not set correctly The Serial communica ti...

Страница 289: ...FALSE CTS control is set but the Remote Unit s RTS RS sig nal is not input in the Local Unit s CTS CS signal Perform either of the following Loop the RTS RS CTS CS signals of the Local Unit Disable C...

Страница 290: ...n was executed while the unit was restarting Review the set tings in the Serial Rcv or SerialRcvNoClear instruction Review the pro gram for instances where the causes specified on the left might occur...

Страница 291: ...tion for the SerialRcv or Serial RcvNoClear instruc tion was not completed One of the following is the cause The start code end code setting is incor rect Revise the settings for the Start Code End Co...

Страница 292: ...de to Loopback Test Mode and check the trans mission lines If an error occurs during the test replace the Unit The cables are not connected cor rectly The setting of the 2 4 wire switch for the RS 422...

Страница 293: ...on Review the pro gram for instances where the causes specified on the left might occur Command end code 2201 hex not possible dur ing execution was returned If the SerialSend instruction was executed...

Страница 294: ...but _P1 orP2 _PmrE xecSta Protocol Macro Executing Flag is not set to TRUE As ExecPMCR instruc tion execution condi tions _P1 orP2 _PmrExecS ta Protocol Macro Executing Flag is used as N O The program...

Страница 295: ...nstruc tion execution condi tions the Network Communications Instruction Enabled Flag _Port_isAvailable is used as N C The program is incorrect As ExecPMCR instruction execution conditions set the Net...

Страница 296: ...outside the allowable range or there are bit errors due to mis matched stop bits and so on Review the System Set tings Review the Remote Unit settings and the program including the baud rate frame for...

Страница 297: ...nd process ing was completed until the Send operation was com pleted is discarded Use full duplex mode The Remote Unit sometimes returns no response to sent data The Unit receives responses by per for...

Страница 298: ...hat are not reg istered Correct the communications sequence number or add a sequence by using CX Protocol 16 00002201 This instruction is being executed TRUE corresponds to the value for Busy Add an N...

Страница 299: ...e of the specified area is exceeded when data is written to or read from the CPU Unit For operand specification Check the in out variable settings for the ExecPMCR instruction For direct specification...

Страница 300: ...as the NT AL001 are incor rectly wired or set Check the wiring Check the setting of the 2 4 wire switch Wire all nodes by using the 4 wire method Commands are not sent from the host Reset the serial...

Страница 301: ...is a transmission circuit hardware error Conduct a loopback test to check the transmission lines If an error occurs during the test replace the Unit The destination Mod bus slave address in the comma...

Страница 302: ...esponse contents and the transmission error codes in _P1 orP2 _TransErrSta Transmission Error Status The RD SD indicators flash but sometimes there is no response returned There is a transmission erro...

Страница 303: ...the time cannot be read from the CPU Unit the time of the error in the error log will be recorded as all zeros If the built in clock time is not set correctly the time recorded in the error log will b...

Страница 304: ...Send source network address 80 Bit 15 OFF Bits 08 to 14 Send source network address Bits 00 to 07 Send source node address Send source network address 80 Bit 15 OFF Bits 08 to 14 00 Bits 00 to 07 Sen...

Страница 305: ...ve errors No 0301 Hex Protocol macro operation error 01 Hex Port 1 02 Hex Port 2 Protocol macro error code No 0302 Hex Illegal protocol packet dis carded 01 Hex Port 1 02 Hex Port 2 Always 00 Hex No 0...

Страница 306: ...use the command addresses No No No No No 0117 Hex Increase the number of retries or correct the sys tem so that communications do not jam Yes Yes Yes Yes Yes 0118 Hex Check whether there is a node sen...

Страница 307: ...des and Troubleshooting 0111 Hex Command too long No Yes No No No 0122 Hex Service cannot be executed in current serial communications mode and was discarded No Yes No No No 0107 Hex There is no remot...

Страница 308: ...o use an NS series PT to check events connect the PT to the built in EtherNet IP port on the CPU Unit The errors that may occur for this Unit are listed below Event levels are given in the table as fo...

Страница 309: ...for the Serial Com munications Unit There is an error in the system settings for the Serial Commu nications Unit page 9 38 04750000 hex DTR Check Error An error was found during the DTR check Loopback...

Страница 310: ...or more items were set for the write attribute data for one message A length of 0 bytes was speci fied for a message that was sent or received The length of a message to be sent or received exceeds th...

Страница 311: ...ame page 9 43 64A40000 hex Timeout Error A timeout error occurred The steps in the communica tions sequence of a protocol macro are not progressing There is no remote device to receive the command The...

Страница 312: ...e Exceeded Tr Receive Wait Monitoring Time Exceeded FCS Check Error Command Error Timeout Error Overrun Error Framing Error Parity Error page 9 47 84690000 hex Overrun Error An overrun occurred In Ser...

Страница 313: ...r or Parity Error Transmis sion Error An overrun error framing error or parity error occurred The communications conditions and baud rate settings do not match the host Noise or other external interfe...

Страница 314: ...will continue Stops Execution of the user program stops Starts Execution of the user program starts 9 5 3 Error Descriptions Controller Error Descriptions Event name Gives the name of the error Event...

Страница 315: ...ached information None Precautions Remarks None Event name Protocol Data Error Event code 14800000 hex Meaning A protocol data checksum error has occurred Source PLC Function Module Source details CJ...

Страница 316: ...he system settings for the Serial Communications Unit and cor rect any problems Make the correct system settings for the Serial Communications Unit Attached information Attached information 1 Port num...

Страница 317: ...gory System Effects User program Continues Operation Not affected System defined variables Variable Data type Name None Cause and correction Assumed cause Correction Prevention Loopback test jig failu...

Страница 318: ...with the mes sages that are sent by the remote nodes Attached information Attached information 1 Port number where error was detected Precautions Remarks None Event name Sequence Abort Completed Even...

Страница 319: ...tion review the SrcDat and DstDat arrays for the ExecPMCR instruction If a link word or direct specification is used review the specification range from the CX Protocol Do not exceed the specified are...

Страница 320: ...tor time to match the actual completion time Attached information Attached information 1 Port number where error was detected Precautions Remarks None Event name Tfr Receive Finished Monitoring Time E...

Страница 321: ...d in the converted protocol at the serial gateway When converting to CompoWay F command BCC error When converting to Modbus RTU command CRC error When converting to Modbus ASCII command CRC error When...

Страница 322: ...toring Time in the _P1_PmrSgwSendTimeoutCfg or _P2_PmrSgwSendTimeoutCfg device variable Perform countermeasures in advance In Serial Gateway Mode or Protocol Macro Mode the SD indicator flashes but th...

Страница 323: ...the Serial Communications Unit are faulty Correct any mistakes in wiring the loopback test jig Implement noise countermeasures Replace the Unit Check the wiring of the loopback test jig Use the Unit...

Страница 324: ...ts in the Serial Communications Unit are faulty Replace the Unit None Attached information Attached information 1 Port number where error was detected Precautions Remarks None Event name Reception Ove...

Страница 325: ...d information 1 Port number where error was detected Precautions Remarks None Event name Transmission Error Event code 84680000 hex Meaning A transmission error occurred Source PLC Function Module Sou...

Страница 326: ...untermeasures Increase the setting for the number of resends in the device that sent the command If required perform retry processing for communica tions Perform countermeasures in advance No protocol...

Страница 327: ...faulty A transmission error occurred due to noise or other factors Perform a loopback test in the serial communications mode and check the transmission lines If an error occurs during testing replace...

Страница 328: ...n error occurred due to noise or other factors Perform a loopback test in the serial communications mode and check the transmission lines If an error occurs during testing replace the Serial Communica...

Страница 329: ...ance Noise or other external interference Use shielded twisted pair cables for the communications cables Wire the communications cables in separate ducts from power lines Check the environment for noi...

Страница 330: ...ables Variable Data type Name None Cause and correction Assumed cause Correction Prevention Noise Implement noise countermeasures Use the Unit away from sources of noise Implement noise countermea sur...

Страница 331: ...y adhered materials when you clean the Unit Precautions for Correct Use Precautions for Correct Use Never use benzene paint thinner or other volatile solvents and do not use chemically treated cloths...

Страница 332: ...Item Details Criterion Inspection materials Operating environment Check the ambient temperature and the temperature of the control panel 0 to 55 C Temperature gage Check the ambient humidify and the h...

Страница 333: ...re defective clean the contacts with a clean all cotton cloth moistened with industrial strength alcohol Remove any cloth particles before you mount the Unit Precautions for Correct Use Precautions fo...

Страница 334: ...mounted and switch the operating mode to PROGRAM Mode 2 Save the protocol macro data by using the CX Protocol Refer to the CX Protocol Ver 1 9 OPERATION MANUAL Cat No W344 for details 3 Turn OFF the...

Страница 335: ...Response Formats R 8 R 2 5 CompoWay F Master Protocol Sequences R 12 R 2 6 CompoWay F Message Frames and PMCR 260 Operands R 12 R 2 7 Send Receive with ASCII Conversion and with Response R 13 R 2 8 S...

Страница 336: ...CJ series Serial Communications Units Operation Manual for NJ series CPU Unit W494 R 6 1 Protocol Configuration R 117 R 6 2 Connections R 119 R 6 3 Compatible Modems R 119 R 6 4 Modem Settings R 120 R...

Страница 337: ...specification set 0000 Hex as the initial value in D 0 Example The following data would be used to execute sequence number 600 in the CompoWay F Master Protocol for a transmission with ASCII conversio...

Страница 338: ...ata storage words Number of receive data words 0 1 2 PMCR 0258 S D Offset Contents data format Data Number of receive data words 4 digits Hex 0003 to 00FA Hex 3 to 250 decimal D 0 The response code wi...

Страница 339: ...22 SCU32 SCU42 CJ1W SCU22 SCU32 SCU42 Instruction name PMCR ExecPMCR Sequence No setting 2nd operand Input variable SeqNo Send data setting 3rd operand or operand S Input variable SrcDat Receive data...

Страница 340: ...sed as slaves and receiving responses V500 V520 Bar Code Reader Protocol for controlling a Bar Code Reader via the Communications Board Proce dures for controlling the Bar Code Reader in remote mode r...

Страница 341: ...mpoWay F commands the host can read write data settings and operating status to control the operation of the components CompoWay F has the following features The same message frame format is used elim...

Страница 342: ...ommunications Specifications Item Specification Transmission path con nections Multipoint Communications RS 232C RS 422A 485 4 wire half duplex 2 wire half duplex Synchronization Start stop Baud rate...

Страница 343: ...ext BCC The block check character horizontal parity 1 byte display The character is an exclusive OR of all data from just after the STX to the ETX Item Meaning STX A code 02 Hex indicating the beginni...

Страница 344: ...acters that was received 13 BCC error The BCC for the receive frame was incorrect 14 Format error An illegal command or illegal character was received in the command and text characters other than ASC...

Страница 345: ...ll be read and a normal end will be returned A parameter error will occur for any settings other than 0000 and 0001 Response Text 1 Response Code MRES SRES 2 Read Data The specified data is returned i...

Страница 346: ...PMCR 260 is shown below using communications sequence No 600 as an example Command Frame Response Frame R 2 5 CompoWay F Master Protocol Sequences R 2 6 CompoWay F Message Frames and PMCR 260 Operand...

Страница 347: ...ored starting at the specified word Yes Yes 601 0259 Broadcast with ASCII conversion no response A broadcast version of sequence No 600 No responses are received Yes No 602 025A Send with no conversio...

Страница 348: ...peci fied variable type to the specified node number Yes Yes 612 0264 Variable area broadcast send Writes the specified number of elements from the address of the specified variable type using a broad...

Страница 349: ...in memory This is necessary because the data is converted to ASCII data before being sent Frames are created and sent starting from the rightmost to leftmost word of the address in I O memory 620 026...

Страница 350: ...dress 00 number of elements Data in shaded portions is specified in the PMCR 260 instruction Note A first read address of 0000 specifies the present value An address of 0001 specifies the maximum valu...

Страница 351: ...on 4th Operand of PMCR 260 STX Node No Subad dress End code Command code Response code Receive data ETX BCC MRC SRC Note 1 Read data Note 2 02 Hex 101 101 01 01 00 00 0000 03 Hex Response code Meaning...

Страница 352: ...cation 4th Operand of PMCR 260 None Specify a dummy value for the operand such as 0000 Broadcast with ASCII Conversion No Response Sequence No 601 Hex 0259 Offset Contents data format Data 0 Number of...

Страница 353: ...the command code for the required service 3 Number of send bytes 4 digits Hex Number of data bytes from the next byte after the command code until the byte just before the ETX 0000 to 01EC Hex 0 to 4...

Страница 354: ...Response Sequence No 603 Hex 025B Offset Contents data format Data 0 Number of send data words 4 digits Hex 0005 to 00FA Hex 5 to 250 decimal 1 Undefined 2 MRC 2 digits Hex SRC 2 digits Hex Set the c...

Страница 355: ...being com municated with 3 Undefined 000 Hex SID 1 digit Hex Set the service ID of the required service e g retries 4 Number of send bytes 4 digits Hex Number of data bytes from the MCR until the byte...

Страница 356: ...data format Data 0 Number of send data words 4 digits Hex 0006 to 00FA Hex 6 to 250 decimal 1 Undefined 0000 Hex 2 Undefined 00 Hex Subaddress 2 digits Hex Specify the subaddress of the device being...

Страница 357: ...CII Conversion with Response Sequence No 606 Hex 025E Offset Contents data format Data 0 Number of send data words 4 digits Hex 0005 to 00FA hex 5 to 250 decimal 1 Undefined Node No 2 digits BCD 00 to...

Страница 358: ...ds 4 digits hex 0003 to 00FA Hex 3 to 250 decimal 1 Response code 4 digits hex The CompoWay F command response code will be stored in hexadecimal code 2 on Receive data 4 digits hex The data from just...

Страница 359: ...CII Conversion with Response Sequence No 607 Hex 025F Offset Contents data format Data 0 Number of send data words 4 digits hex 0005 to 00FA hex 5 to 250 decimal 1 Undefined Node No 2 digits BCD 00 to...

Страница 360: ...de until just before the ETX is converted from ASCII to hexadecimal and stored in order from the right most word to the leftmost word Variable Area Read Sequence No 610 Hex 0262 Offset Contents data f...

Страница 361: ...most word to the rightmost word of the I O memory address Offset Contents data format Data 0 Number of receive data words 0003 to 00FA Hex 3 to 250 decimal 1 Response code 4 digits hex The CompoWay F...

Страница 362: ...to 99 2 Variable type 2 digits hex Set the area type 2 digits and the first write address 6 digits The leftmost byte of the first write address speci fies the address and the rightmost byte specifies...

Страница 363: ...r the operand such as 0000 Variable Area Broadcast Send Sequence No 612 Hex 0264 Offset Contents data format Data 0 Number of send data words 0007 to 00FA hex 7 to 250 decimal 1 Undefined 2 Variable t...

Страница 364: ...address 6 digits The leftmost byte of the first write address speci fies the address and the rightmost byte specifies the bit location Set the rightmost byte to 00 when bit access is not required 3 F...

Страница 365: ...x Set the area type 2 digits and the first write address 6 digits The leftmost byte of the first write address speci fies the address and the rightmost byte specifies the bit location Set the rightmos...

Страница 366: ...250 decimal 1 Response code 4 digits hex The CompoWay F command response code is stored in hexadecimal code 2 Parameter type 4 digits hex The parameter type is stored in hexadecimal code 4 First read...

Страница 367: ...Area Write Sequence No 616 Hex 0268 Offset Contents data format Data 0 Number of send data words 0007 to 00FA Hex 7 to 250 decimal 1 Undefined Node No 2 digits BCD 00 to 99 2 Parameter type 4 digits h...

Страница 368: ...cation 4th Operand of PMCR 260 None Specify a dummy value for the operand such as 0000 Parameter Area Broadcast Send Sequence No 617 Hex 0269 Offset Contents data format Data 0 Number of send data wor...

Страница 369: ...0 Number of send data words Always 0002 hex 2 decimal 1 Undefined Node No 2 digits BCD 00 to 99 Offset Contents data format Data 0 Number of receive data words Always 0006 Hex 6 decimal 1 Response co...

Страница 370: ...back Test Sequence No 620 Hex 026C Offset Contents data format Data 0 Number of send data words 0004 to 00FA Hex 4 to 250 decimal 1 Undefined Node No 2 digits BCD 00 to 99 2 Number of bytes to send 4...

Страница 371: ...to send 4 digits hex Set the number of bytes to send for related infor mation Set to 0002 hex when there is no related information 3 Command code 2 digits hex Set the command code and related informa...

Страница 372: ...ine beyond 15 m Use shielded twisted pair cable R 2 9 Connections FG SG SD RD RTS CTS DSR DTR RS 232C Serial Communications Unit Board Shielded wire Abbrevi ation TX RX FG SG SD RD RTS CTS DSR DTR RS...

Страница 373: ...N systems The total cable length can be 500 m max Use shielded twisted pair cable Be sure to turn ON the terminating resistance switches only at the device at each end of the transmission line RS 422...

Страница 374: ...switch ON at the end station Set the 2 4 wire switch to the 2 wire setting Turn ON the terminat ing resistance switch Shell 1 2 Serial Communications Board Unit Ab brevi ation RS 485 Intelligent Signa...

Страница 375: ...r serially or on a MELSECNET Ethernet network R 3 1 Communications Specifications Item Specifications Protocol Computer Link A compatible 1C frame model 1 Transmission path connec tion Multi point Hos...

Страница 376: ...Error Response R 3 2 Command Response Formats ENQ 05 hex 2 bytes Checksum PLC No Characters text hex hex hex hex 1 byte 2 bytes 2 bytes 2 bytes 1 byte 30 hex Station No Command code Transmission delay...

Страница 377: ...on delay This is the delay until a response is returned from the remote destination Computer Link Module The Transmission delay is not supported by this protocol and 0 hex 0 ms is set in the command f...

Страница 378: ...series CPU Unit to the number of device points starting from the specified device address for the specified device type T C in the Mitsubishi Computer Link Mod ule with the specified station number a...

Страница 379: ...V data starting from the specified word 7 in the CS CJ series CPU Unit to the number of device points starting from the specified device address for the specified device type T C in the Mitsubishi Com...

Страница 380: ...ost Send Receive User specified Computer Link Commands with ASCII Conversion Sequence No 800 Hex 0320 Command Code User specified Offset Contents data format Data 0 Number of send data words 4 digits...

Страница 381: ...send data words 4 digits hex 0004 to 00FA hex 4 to 250 decimal 1 Station No 2 digits hex PLC No 2 digits hex Station No 00 to FF hex PLC No 00 to FF hex 2 Command 4 digits hex Specify the service comm...

Страница 382: ...s data format Data 0 Number of send data words 4 digits hex Always 0005 hex 5 decimal 1 Station No 2 digits hex PLC No 2 digits hex Station No 00 to FF hex PLC No 00 to FF hex 2 Undefined Device type...

Страница 383: ...e No 803 Hex 0323 Command Code WR Offset Contents data format Data 0 Number of send data words 4 digits hex Always 0005 hex 5 decimal 1 Station No 2 digits hex PLC No 2 digits hex Station No 00 to FF...

Страница 384: ...FF hex 2 Undefined Device type 2 digits hex Set the device type 1 character in ASCII 3 Device No 4 digits hex Set the first write address of the write data 4 Undefined Device points 2 digits hex Set...

Страница 385: ...ts hex Station No 00 to FF hex PLC No 00 to FF hex 2 Device type 4 digits hex Set the device type 2 characters in ASCII 3 Unde fined Device No 3 digits hex Set the first write address of the write dat...

Страница 386: ...ntents data format Data 0 Number of send data words 4 digits hex Always 0005 hex 5 decimal 1 Station No 2 digits hex PLC No 2 digits hex Station No 00 to FF hex PLC No 00 to FF hex 2 Undefined Device...

Страница 387: ...No 807 Hex 0327 Command Code BR Offset Contents data format Data 0 Number of send data words 4 digits hex Always 0005 hex 5 decimal 1 Station No 2 digits hex PLC No 2 digits hex Station No 00 to FF h...

Страница 388: ...0 to FF hex PLC No 00 to FF hex 2 Undefined Device type 2 digits hex Set the device type 2 characters in ASCII 3 Device No 4 digits hex Set the first write address of the write data 4 Unde fined Devic...

Страница 389: ...ex Station No 00 to FF hex PLC No 00 to FF hex 2 Device type 4 digits hex Set the device type 2 characters in ASCII 3 Unde fined Device No 3 digits hex Set the first write address of the write data 4...

Страница 390: ...format Data 0 Number of send data words 4 digits hex Always 0006 hex 6 decimal 1 Station No 2 digits hex PLC No 2 digits hex Station No 00 to FF hex PLC No 00 to FF hex 2 Undefined Device type 2 digi...

Страница 391: ...No 811 Hex 032B Command Code QR Offset Contents data format Data 0 Number of send data words 4 digits hex Always 0006 hex 6 decimal 1 Station No 2 digits hex PLC No 2 digits hex Station No 00 to FF he...

Страница 392: ...efined Device type 2 digits hex Set the device type 1 character in ASCII 3 Device No 6 digits hex Set the first write address of the write data 4 Undefined 5 Undefined Device points 2 digits hex Set t...

Страница 393: ...ex Station No 00 to FF hex PLC No 00 to FF hex 2 Device type 4 digits hex Set the device type 2 characters in ASCII 3 Device No 5 digits hex Set the first write address of the write data 4 Undefined 5...

Страница 394: ...format Data 0 Number of send data words 4 digits hex Always 0006 hex 6 decimal 1 Station No 2 digits hex PLC No 2 digits hex Station No 00 to FF hex PLC No 00 to FF hex 2 Undefined Device type 2 digit...

Страница 395: ...No 815 Hex 032F Command Code JR Offset Contents data format Data 0 Number of send data words 4 digits hex Always 0006 hex 6 decimal 1 Station No 2 digits hex PLC No 2 digits hex Station No 00 to FF he...

Страница 396: ...fined Device type 2 digits hex Set the device type 1 character in ASCII 3 Device No 6 digits hex Set the first write address of the write data 4 Undefined 5 Undefined Device points 2 digits hex Set th...

Страница 397: ...x Station No 00 to FF hex PLC No 00 to FF hex 2 Device type 4 digits hex Set the device type 2 characters in ASCII 3 Device No 5 digits hex Set the first write address of the write data 4 Undefined 5...

Страница 398: ...s 4 digits hex Always 0005 hex 5 decimal 1 Station No 2 digits hex PLC No 2 digits hex Station No 00 to FF hex PLC No 00 to FF hex 2 Undefined Data length 2 digits hex Set the number of bytes of loopb...

Страница 399: ...erial Communications Unit Board via RS 232C cable The connections for using the V500 V520 Bar Code Reader Protocol are shown below V500 Connections R 4 1 Connections 100 VAC V500 C11 ID Controller V50...

Страница 400: ...Interface R 4 2 System Setting Read trigger Read control method Prefix Suffix Bar code output RS 232C port Reader Signal Name Signal Name Pin No Pin No V509 W011 Reader Cable V520 R121 Serial Communi...

Страница 401: ...ions Yes No 355 0163 BCR function read V500 Reads the operation mode and read func tions No Yes 356 0164 Log data output request V500 Requests output of log data sent to host Yes Yes 357 0165 Preset d...

Страница 402: ...one Receive Data Word Allocation 4th Operand of PMCR 260 None This sequence instructs the Bar Code Reader to stop reading Send Data Word Allocation 3rd Operand of PMCR 260 None Receive Data Word Alloc...

Страница 403: ...e Bar Code Reader stores the data in the receive data storage words and then instructs the Reader to stop read ing Send Data Word Allocation 3rd Operand of PMCR 260 None Receive Data Word Allocation 4...

Страница 404: ...LL 44 D NW7 HEX 45 E CODE39 NORMAL 46 F CODE39 ST SP OUTPUT 47 G 2 of 5 ITF 48 H CODE128 49 I CODE93 4A J 2 of 5 3BAR 4B K 2 of 5 5BAR 3 Number of digits 2 digits BCD 00 to 32 00 Any number of digits...

Страница 405: ...LL 44 D NW7 HEX 45 E CODE39 NORMAL 46 F CODE39 ST SP Output 47 G 2 of 5 ITF 48 H CODE128 49 I CODE93 4A J 2 of 5 3BAR 4B K 2 of 5 5BAR 3 Number of digits 2 digits BCD 00 to 32 4 Modulus check ASCII 1...

Страница 406: ...et Contents data format Data 0 Number of send data words 4 digits Hex 0002 fixed 1 Number of data 2 digits BCD 01 to 99 Offset Contents data format Data 0 Number of receive data words 4 digits Hex 000...

Страница 407: ...t BCD 1 to 5 2 Preset data No 1 digit BCD 1 to 5 3 Data length 2 digits BCD 01 to 32 4 to 19 Preset data ASCII Combination of the following ASCII characters and up to 32 characters maximum 30 0 to 39...

Страница 408: ...to that of sequence No 352 Data read Additional Information Since this sequence repeats itself within the sequence once it is executed it remains in the execution state until cancelled Even if executi...

Страница 409: ...confirms BCR connection and sets the BCR functions Send Data Word Allocation 3rd Operand of PMCR 260 The send data word allocation is similar to that of sequence No 354 BCR Function Set Receive Data W...

Страница 410: ...cautions for Correct Use Sequences No 361 and No 364 Continuous Data Read with Interrupt are not supported by the CS1W SCU V1 and CJ1W SCU V1 Serial Communications Units A protocol macro syntax error...

Страница 411: ...thout ACK STX and ETX is stored General purpose Command 2 Sequence No 366 Hex 016E Offset Contents data format Data 0 Number of send data words 4 digits Hex 0003 to 00FA 3 to 250 decimal 1 Send data b...

Страница 412: ...of 3Z4L 3000 3Z4L 4000 series DIP switches required to use the system protocol sequences 3Z4L 3000 Series DIP Switch 1 R 5 1 Connections DIP Switch Settings No Setting Status 1 Baud rate ON OFF 2 ON O...

Страница 413: ...nstruments ON OFF 2 ON OFF 3 ON OFF 4 ON OFF 5 Error data exclusion function ON OFF 6 Multistep selection function ON OFF No Setting Status 1 Baud rate ON OFF 2 ON OFF 3 Hand shake procedure ON OFF 4...

Страница 414: ...set the delimiter code control setting in the sequence to CR LF See the setting for CR LF in the following diagram Turn OFF Turn OFF to use as a general purpose interface Turn ON to use as a general...

Страница 415: ...ch set No 1 No 1 402 0192 mm unit set Yes Yes 403 0193 E unit set Yes Yes 404 0194 Calibration set No No 405 0195 Calibration release Yes Yes 406 0196 Program number set 3000 series No 1 Yes 407 0197...

Страница 416: ...Yes 424 01A8 AVG move interval set 3000 series Yes Yes 425 01A9 AVG move H times set 3000 series Yes Yes 426 01AA AVG move L times set 3000 series Yes 2 No 427 01AB Automatic detection set 3000 series...

Страница 417: ...ttings No Yes 410 019A Single run measurement start 3000 series When the sample measurement condi tion is from 1 to 999 performs a single run measurement and requests the mea surement results No Yes 4...

Страница 418: ...s all statistic memory in sequence Yes No 431 01AF Measurement condition set 4000 series Sets measurement conditions Yes No 432 01B0 Measurement condition release 4000 series Releases measurement cond...

Страница 419: ...3rd and 4th operands of PMCR 260 NO Send word allocation Set the constant 0000 for the 3rd operand S Receive word allocation Set the constant 0000 for the 4th operand D 442 01BA Forced zero release 40...

Страница 420: ...can be used for the 3Z4L 4000 Series only when pin 8 on DIP switch SW2 is turned ON 3Z4L Clear Sequence No 400 Hex 0190 Memory Switch Set Sequence No 401 Hex 0191 Offset Contents data format Data 300...

Страница 421: ...n 3rd Operand of PMCR 260 E Unit Set Sequence No 403 Hex 0193 Calibration Set Sequence No 404 Hex 0194 Offset Contents data format Data 0 Number of send data words 4 digits Hex 0007 fixed 1 HC gauge d...

Страница 422: ...s the calibration of the Laser Micrometer Send Data Word Allocation 3rd Operand of PMCR 260 None Receive Data Word Allocation 4th Operand of PMCR 260 None Additional Information In this sequence you c...

Страница 423: ...ined Integer portion Sign Undefined Decimal portion Decimal portion Undefined Integer portion Sign Undefined Decimal portion Undefined Integer portion Sign Undefined Decimal portion Undefined Integer...

Страница 424: ...mit values 15 to 17 Multistep selection limit value L2 Same as lower limit values 18 to 20 Multistep selection limit value L3 Same as lower limit values 21 to 23 Multistep selection limit value L4 Sam...

Страница 425: ...pulse 3 digits BCD 000 to 999 42 to 43 Sample measurement classifica tion ASCII 3 characters 415647 AVG 4D4158 MAX 4D494E MIN 524E47 RNG 44 to 45 Unused Undefined 46 Yes No for segment setting 1 digi...

Страница 426: ...ement Condition Set However only the setting Yes No flags at 46 to 53 from the send data leading word can be used Receive Data Word Allocation 4th Operand of PMCR 260 None Additional Information The f...

Страница 427: ...n Sign Undefined Undefined Integer portion Decimal portion Sign Undefined Undefined Integer portion Sign Undefined Undefined Program number P Segment number SG Measurement interval number M Lower limi...

Страница 428: ...imit value L1 Same as lower limit values 15 to 17 Multistep selection limit value L2 Same as lower limit values 18 to 20 Multistep selection limit value L3 Same as lower limit values 21 to 23 Multiste...

Страница 429: ...at Data 0 Number of receive data words 4 digit Hex With no reference setting 0006 With reference setting 0009 1 Program number 1 digit BCD 0 to 9 2 Decision result ASCII 2 characters With no limit set...

Страница 430: ...and the interrupt No is 101 Send Data Word Allocation 3rd Operand of PMCR 260 None Receive Data Word Allocation 4th Operand of PMCR 260 The receive data word allocation is similar to that of sequence...

Страница 431: ...eduled data output value is set to a lower value This sequence requests display data in the idle measurement status or the latch data generated by the measurement command Send Data Word Allocation 3rd...

Страница 432: ...0 None Receive Data Word Allocation 4th Operand of PMCR 260 All Statistic Memory Clear 3000 series Sequence No 418 Hex 01A2 Statistic Processing Memory Clear 3000 series Sequence No 419 Hex 01A3 Stati...

Страница 433: ...ion 0000 Sign area F000 The value 0 12345 is stored as follows Area of decimal portion 2345 Area of integer portion 0001 Sign area F000 Offset Contents data format Data 0 Number of receive data words...

Страница 434: ...nts data format Data 0 Number of send data words 4 digits Hex 0003 fixed 1 w 1 digits BCD 0 For single run or zero run measurement start displaying 1 For single run or zero run measurement start displ...

Страница 435: ...A6 Offset Contents data format Data 0 Number of send data words 4 digits Hex 0003 fixed 1 w 1 digit BCD 0 Work automatic detection is not performed 1 Work automatic detection is performed Diameter det...

Страница 436: ...d Operand of PMCR 260 Receive Data Word Allocation 4th Operand of PMCR 260 None Additional Information This sequence cannot be used when DIP switch SW3 pin 5 of the Laser Micrometer is not turned ON S...

Страница 437: ...Operand of PMCR 260 Receive Data Word Allocation 4th Operand of PMCR 260 None Additional Information This sequence cannot be used when DIP switch SW3 pin 5 of the Laser Micrometer is not turned ON Thi...

Страница 438: ...utomatic Detection Set 3000 series High speed Type Sequence No 427 Hex 01AB Offset Contents data format Data 0 Number of send data words 4 digits Hex 0009 fixed 1 Number of measurements 3 digits BCD 0...

Страница 439: ...ion List Request 3000 series High speed Type Sequence No 429 Hex 01AD Offset Contents data format Data 0 Number of receive data words 4 digits Hex 0009 fixed 1 The number of measuring times 3 digits B...

Страница 440: ...an be selected by setting Yes No flags Send Data Word Allocation 3rd Operand of PMCR 260 3Z4L Initialize 3000 series Sequence No 430 Hex 01AE Measurement Condition Set 4000 series Sequence No 431 Hex...

Страница 441: ...8 Upper limit value Same as lower limit value 9 to 11 Reference value Same as lower limit value 12 Analog output scale number 1 digit BCD 0 to 3 13 to 15 Unused 16 Data output conditions 1 digit BCD 0...

Страница 442: ...flags at 19 to 24 from the send data leading word can be used Receive Data Word Allocation 4th Operand of PMCR 260 None Additional Information The following conditions are used when the measurement co...

Страница 443: ...e Same as lower limit value 12 Analog output scale number 1 digit BCD 0 to 3 13 to 15 Forced zero number ASCII 5 characters 5A45524F2B ZERO 4E4F524D20 NORM 5A45524F2D ZERO 16 Data output condition 1 d...

Страница 444: ...nce setting 0005 With reference setting 0008 1 Decision result ASCII 2 characters With no limit setting 0000 With limit setting 2B4E N 4F4B OK 2D4E N 2 Measurement value decimal portion 4 digits BCD 0...

Страница 445: ...series Laser Micrometers This sequence starts a continuous measurement The scan notification method is used for the receive data Send Data Word Allocation 3rd Operand of PMCR 260 None Receive Data Wor...

Страница 446: ...1 Serial Communications Units A protocol syntax error will occur if an attempt is made to execute either sequence with a Serial Communications Unit Do not set an EM bank as the receive storage word fo...

Страница 447: ...quence sets the forced zero direction to positive Send Data Word Allocation 3rd Operand of PMCR 260 None Receive Data Word Allocation 4th Operand of PMCR 260 None This sequence sets the forced zero di...

Страница 448: ...d data with a specified data length and receive back only OK The terminator CR is automatically attached to the send data Send Data Word Allocation 3rd Operand of PMCR 260 Receive Data Word Allocation...

Страница 449: ...Contents data format Data 0 Number of send data words 4 digits Hex 0003 to 00FA 3 to 250 decimal 1 Send data byte length 4 digits Hex 0001 to 01F0 1 to 496 decimal The number of bytes of send data ex...

Страница 450: ...ed The HC gauge dimension must be set with 3 digits for the integer portion and 4 digits for the decimal portion This sequence sets the Laser Micrometer s low calibration Send Data Word Allocation 3rd...

Страница 451: ...nnected to the Serial Communications Unit Board AT commands and telephone numbers are set in the words specified for the 3rd operand of PMCR 260 This sequence can be used only for certain OMRON modems...

Страница 452: ...4 Note The hexadecimal equivalents of sequences numbers are given in parentheses Ladder Interface Settings YES User settings are required for the 3rd and 4th operands of PMCR 260 NO Send word allocati...

Страница 453: ...owing Modems MD24FB10V OMRON Modem MD144FB5V OMRON Intelligent Modem No longer manufactured ME1414BIII ME2814BII OMRON FAX DATA Modem For other modems perform a modem initialization using the sequence...

Страница 454: ...rotect settings so that even after the power supply to the modem is turned off it can communicate with the previous setting conditions Refer to the modem manual for how to save settings For Initialize...

Страница 455: ...hone numbers for the OMRON ME1414BIII ME2814BII Modems using sequences No 561 571 581 set the dialling command and telephone number in the words specified by the 3rd oper and of PMCR 260 However for o...

Страница 456: ...ion OPR 4 None Set 0000 S 0 Number of words from address set for operand 2 to end of data 4 digits Hex S 1 Number of bytes of send data dialling operation 4 digits Hex S 2 S n Send data dialling opera...

Страница 457: ...ta Send Receive Sequence No 553 Hex 0229 Code length of PMCR 260 when it is used words Character string length of password sent to modem bytes 0008 0006 4F4D O M 524F R O 4E2D N 434F C O PLC Personal...

Страница 458: ...nect the line can be executed using sequence No 555 No setting is necessary for this sequence OPR 2 0229 OPR 3 First address C1 of the words where send data is set OPR 4 First address C2 of the words...

Страница 459: ...her result code The receive monitoring time and send wait time for each sequence are shown below Note The hexadecimal equivalents of sequences numbers are given in parentheses R 6 5 Communication Erro...

Страница 460: ...A Standard System Protocol R 126 CJ series Serial Communications Units Operation Manual for NJ series CPU Unit W494...

Страница 461: ...ual for NJ series CPU Unit W494 App A 1 Differences in Available Functions Depending on the CPU Unit NJ or CJ Series A 2 A 1 1 Functional Differences A 2 A 1 2 Differences in Methods for Access from a...

Страница 462: ...connected to an NJ series CPU Unit The corresponding names are listed in the following table An NJ series CPU Unit with unit version 1 03 or later and Sysmac Studio version 1 04 or higher are required...

Страница 463: ...Start address of the CPU Bus Unit CIO area n 1500 Unit number 25 Unit number 0 to 15 Start address of the CPU Bus Unit DM area m D30000 Unit number 100 Unit number 0 to 15 Device variables for CJ ser...

Страница 464: ...ce Switch Proto col Macros 09 _P2_PmrContTraceCmd Port 2 Continuous Trace Switch Protocol Macros 08 _P2_PmrWaitRlsCmd Port 2 Wait Release Switch Proto col Macros 07 to 00 _P1_SoftSw Port 1 Software Sw...

Страница 465: ..._P2_DatBitSta Data Length 02 _P1_StopBitSta _P2_StopBitSta Stop Bits 01 _P1_ParityYNSta _P2_ParityYNSta Parity Yes No 00 _P1_ParityBitSta _P2_ParityBitSta Parity Even Odd n 6 n 16 15 to 00 _P1_HwSetS...

Страница 466: ..._P1_TrErr _P2_TrErr Tr Receive Wait Monitoring Time Exceeded 11 to 08 Bit 11 to 08 of _P1_TransErrSta Bit 11 to 08 of _P2_TransErrSta Retry Count 07 _P1_FCSErr _P2_FCSErr FCS Check Error 06 _P1_CmdErr...

Страница 467: ...10 _P1_PmrSeqAbtSta _P2_PmrSeqAbtSta Sequence Abort Completion Flag 09 _P1_PmrSeqWaitSta _P2_PmrSeqWaitSta Sequence Wait Flag 08 _P1_PmrSgwProhSta _P2_PmrSgwProhSta Serial Gateway Prohibited Flag Pro...

Страница 468: ..._LbtOverRunErr Overrun Error 02 _P1_LbtFramingErr _P2_LbtFramingErr Framing Error 01 Reserved 00 _P1_LbtCmpErr _P2_LbtCmpErr Comparison Error n 10 n 20 15 to 00 _P1_LbtTestCntSta _P2_LbtTestCntSta Tes...

Страница 469: ...Bus Unit CJ series I O memory Address NJ Series device variable for CJ series Unit Word No Bit No Variable name Meaning Port 1 Port 2 Port 1 Port 2 m m 10 15 to 00 _P1_PortCfg _P2_PortCfg Port Setting...

Страница 470: ...m 6 m 16 15 to 08 _P1_MbsSlavAdrCfg _P2_MbsSlavAdrCfg Modbus RTU Slave Address 07 to 03 Reserved 02 to 00 _P1_NtlMaxUnitNoCf g _P2_NtlMaxUnitNoCf g 1 N NT Links Maximum Unit Number m 7 m 17 15 to 00 _...

Страница 471: ...s Allocation Area m 21 m 31 15 to 00 _P1_MbsRegAreaCfg _P2_MbsRegAreaCfg Modbus RTU Settings 15 to 08 _P1_MbsInRegAreaC fg _P2_MbsInRegAreaC fg Input Registers Allocation Area 07 to 00 _P1_MbsHdRegAre...

Страница 472: ...es to Functional Specifications The following table gives the unit version of the Serial Communications Units the unit version of the CPU Units and the Sysmac Studio version for each addition or chang...

Страница 473: ...Index 1 CJ series Serial Communications Units Operation Manual for NJ series CPU Unit W494 I Index...

Страница 474: ...Switch 2 23 Continuous Trace Switch Protocol Macros 4 22 Controller error 9 30 Controller reset 1 14 2 14 4 23 Converting to CompoWay F 5 23 Converting to Modbus ASCII 5 28 Converting to Modbus RTU 5...

Страница 475: ...Number of Normally Received Commands 7 12 Number of Normally Sent Responses 7 12 Number of receive data bytes during reception 1 20 6 3 Number of Receive Data Bytes in No protocol Mode 2 21 6 7 O One...

Страница 476: ...2 16 4 13 5 5 6 5 8 4 Start code 1 20 6 2 Status 1 14 2 8 2 12 Stop Bits 2 16 4 13 5 5 6 5 8 4 Sysmac Studio 1 23 6 12 System Settings data 2 10 System Setup Error 9 31 9 38 System defined variable 2...

Страница 477: ...nt or addition to the above warranty See http www omron247 com or contact your Omron representative for pub lished information 14 Limitation on Liability Etc OMRON COMPANIES SHALL NOT BE LIABLE FOR SP...

Страница 478: ...o SP Brasil 55 11 2101 6300 www omron com br OMRON ARGENTINA SALES OFFICE Cono Sur 54 11 4783 5300 OMRON CHILE SALES OFFICE Santiago 56 9 9917 3920 OTHER OMRON LATIN AMERICA SALES 54 11 4783 5300 OMRO...

Отзывы: