background image

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

Summary of Contents for CJ1W-SCU22

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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_...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 192: ...4 Using Protocol Macros 4 56 CJ series Serial Communications Units Operation Manual for NJ series CPU Unit W494...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 250: ...6 No protocol Mode 6 22 CJ series Serial Communications Units Operation Manual for NJ series CPU Unit W494...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 460: ...A Standard System Protocol R 126 CJ series Serial Communications Units Operation Manual for NJ series CPU Unit W494...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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 _...

Page 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...

Page 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...

Page 473: ...Index 1 CJ series Serial Communications Units Operation Manual for NJ series CPU Unit W494 I Index...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Reviews: