background image

 
 
 

11 - 25                                                                                                                                                      11 - 25 

11 DATA COMMUNICATION USING THE BIDIRECTIONAL PROTOCOL

 

11.3 Processing when Simultaneous Transmission Performed During Full-Duplex 

Communication 

This section explains the processing when simultaneous transmissions occur in full-
duplex communication. 
 

11.3.1 Processing when simultaneous transmissions occur 

This section explains the processing performed by the C24 when the external device and 
the C24 transmit at the same time during data communications using the bidirectional 
protocol. 
Since the external device and the C24 do not transmit at the same time during half-duplex 
communications (refer to User's Manual (Application)), this section does not have to be 
read. 

 

When an external device and the C24 transmit at the same time, the C24 processing 
depends on the setting.  
"Various_Control_Specification" screen   "For designation of transmission control"   
"Receive data" or "Transmission data"  

  The values, set to "Receive data" and "Transmission data" are stored in the following 

areas of the buffer memory.  
Simultaneous transmission data valid/invalid designation (addresses: 9B

H

/13B

H

)  

The C24 communication data processing for each setting is described in Section 
11.3.2 

 

C24 processing contents 

Setting contents  
with GX Works2 

Value set to buffer 

memory 

(Address 9B

H

/13B

H

Message transmit processing 

Message receive processing 

Transmission data: Valid 
Receive data: Valid 

0000

H

 

Waits to receive the response message (1)-2) 
while checking time-out after data 
transmission (1)-1) is complete. 
Posts normal end or abnormal end according 
to whether or not the CPU module received a 
response message through the buffer 
memory. 

Transmits a response message (2)-2) 
after data reception (2)-1) is complete. 
Posts the receive data and receive result 
to the CPU module through the buffer 
memory. 

Transmission data: Invalid 
Receive data: Valid 

0100

H

 

Posts a simultaneous transmission error to the 
CPU module through the buffer memory after 
data transmission (1)-1). 
Does not wait for a response massage (1)-2) in 
reply to data transmission (1)-1). 

Transmits a response message (2)-2) 
after data reception (2)-1) is complete. 
Posts the receive data and receive result 
to the CPU module through the buffer 
memory. 

Transmission data: Valid 
Receive data: Invalid 

0001

H

 

Waits to receive the response message (1)-2) 
while checking time-out after data 
transmission (1)-1) is complete. 
Posts normal end or abnormal end according to 
whether or not the CPU module received a 
response message through the buffer memory.

Ignores data reception (2)-1) and 
discards the received data. 
Does not transmit a response message 
(2)-2). 
Does not inform the CPU module that 
data was received. 

Transmission data: Invalid 
Receive data: Invalid 

0101

H

 

Posts a simultaneous transmission error to the 
CPU module through the buffer memory after 
data transmission (1)-1). 
Does not wait to a response massage (1)-2) in 
reply to data transmission (1)-1). 

Ignored data reception (2)-1) and 
discards the receive data. 
Does not transmit a response message 
(2)-2). 
Does not inform the CPU module that 
data was received. 

(n)-m) is the number showing the correspondence with the messages in the illustration shown in Section 11.3.2 

Содержание MELSEC LJ71C24

Страница 1: ......

Страница 2: ......

Страница 3: ...eep the manual in a safe place for future reference Design Precautions WARNING For the operation status of each station at communication error in each station refer to the respective manual for each s...

Страница 4: ...utions WARNING Shut off the external power supply for the system in all phases before mounting or removing the module Failure to do so may result in electric shock or cause the module to fail or malfu...

Страница 5: ...lled resulting in damage to the module or cables or malfunction due to poor contact Check the interface type and correctly connect the cable Incorrect wiring connecting the cable to an incorrect inter...

Страница 6: ...cting or disconnecting the module Failure to do so may cause the module to fail or malfunction Tighten the terminal block screw within the specified torque range Undertightening can cause drop of the...

Страница 7: ...ta change program modification and status control may cause malfunction of the system mechanical damage or accidents While set values in the buffer memory are being registered to the flash ROM in the...

Страница 8: ...of the PRODUCT in y Nuclear Power Plants and any other power plants operated by Power companies and or any other cases in which the public could be affected if any problem or fault occurs in the PROD...

Страница 9: ...re correct use When applying the following program examples to the actual system make sure to examine the applicability and confirm that it will not cause system control problems Please make sure that...

Страница 10: ...corporated into other machinery or equipment certain measures may be necessary Please refer to the manual included with the CPU module or base unit The CE mark on the side of the programmable controll...

Страница 11: ...the CPU module Sold separately SH 080008 13JF89 2 CPU module user s manual Manual name Manual number model code MELSEC L CPU Module User s Manual Hardware Design Maintenance and Inspection Specificati...

Страница 12: ...orks2 Sold separately SH 080779ENG 13JU63 GX Works2 Version1 Operating Manual Intelligent Function Module System configuration parameter settings and online operations common to Simple project and Str...

Страница 13: ...IOR TO OPERATION 5 SYSTEM CONFIGURATION 5 1 Overall Configuration 5 1 5 2 Applicable Systems 5 3 5 2 1 Restrictions when the C24 is installed to the head module 5 3 5 3 Systems that can be Configured...

Страница 14: ...resh 7 25 7 5 1 Setting method for auto refresh 7 26 7 6 Intelligent Function Module Interrupt Pointer Setting 7 27 7 7 Monitor Test 7 29 8 DATA COMMUNICATION USING THE MC PROTOCOL 8 1 Data Communicat...

Страница 15: ...1 Transmission methods 11 15 11 2 2 Arrangement and contents of the transmission area and the transmission data 11 16 11 2 3 Sequence program for data transmission 11 19 11 2 4 How to detect and conf...

Страница 16: ...oes not make the SD LED blink 15 39 15 3 5 Read request signal does not turn ON even though the external device transmitted a message and the RD LED was blinking 15 40 15 3 6 The CPRTCL instruction ex...

Страница 17: ...cation operation of receive packet App 37 Appendix 5 3 Data examples of packet elements App 38 Appendix 5 3 1 Length App 38 Appendix 5 3 2 Non conversion variable App 40 Appendix 5 3 3 Conversion vari...

Страница 18: ...A 16 A 16 INDEX REVISIONS WARRANTY...

Страница 19: ...compatible 1C frame Formats 1 to 4 One of the message formats for the C24 for performing communication using the MC protocol and ASCII data This is the same message format as when communicating using...

Страница 20: ...portion of messages to be sent or received between the C24 and a target device is registered in the module and used for sending and receiving data The contents of a user frame data should conform to...

Страница 21: ...se check that all the items are included 1 LJ71C24 LJ71C24 Before Using the Product CAUTION note Terminating resistor for RS 422 communication 330 1 4W 2 Orange Orange Brown Gold Terminating resistor...

Страница 22: ...A 20 A 20 2 LJ71C24 R2 LJ71C24 R2 Before Using the Product...

Страница 23: ...A 21 A 21 MEMO...

Страница 24: ...gital can be used for data communication with a remotely located device 1 MELSEC Communication protocol hereinafter referred to as MC protocol Data can be read from or written into the CPU module devi...

Страница 25: ...he nonprocedural protocol explained in 3 However the following shows the convenient functions when comparing this protocol and the nonprocedural protocol Sequence programs can be reduced since the GX...

Страница 26: ...instruments barcode readers etc Any data Send Receive Any data 4 Bidirectional protocol The bidirectional protocol enables communication between an external device and the CPU module using the data fo...

Страница 27: ...1 2 RS 232 interface RS232 interface for serial communication with external devices D Sub 9 pin female 3 RS 422 485 interface RS422 485 interface for serial communication with external devices 2 piec...

Страница 28: ...al status on the CH2 side 2 Waiting for MC protocol command message to be received MC protocol command message being processed Valid Invalid Off SD Transmission status Data being transmitted MC comman...

Страница 29: ...uplex half duplex communications Communication system Bidirectional protocol communication Full duplex half duplex communications Synchronization method Start stop synchronization method 50 300 600 12...

Страница 30: ...85 1 1 1 n n 1 m n MC protocol communication 1 1 1 1 Predefined protocol communication 1 1 1 1 Nonprocedural protocol communication 1 1 1 1 RS 232 Bidirectional protocols communication 1 1 1 1 MC prot...

Страница 31: ...ual 1 Number of parameters for the C24 The following number of parameters can be set for one C24 Target module Initial setting Auto refresh setting LJ71C24 0 Not used 50 Maximum number of settings LJ7...

Страница 32: ...cation with predefined protocol Data transmission reception Executes data transmission reception with the appropriate protocol for each external device The external device side protocol can be easily...

Страница 33: ...ernal device Data transmission from a CPU module to an external device on demand function Data can be sent from the programmable controller CPU to the external devices in each frame format of the MC p...

Страница 34: ...mmunication with external devices without connecting each other Section 7 3 Linked operation of each interface All data received from one of the two interfaces is transmitted from the other interface...

Страница 35: ...pletion Y8 CH2 Reception data read completion ON Data read completed X9 1 CH2 Transmission processing ON Transmission in progress Y9 CH2 Mode switching request ON Requesting switch User s Manual Appli...

Страница 36: ...witching X6 XD turns ON when the following function is executed Mode switching transmission sequence initialization reception data clear by buffer memory user frame use enable disable designation UINI...

Страница 37: ...PERATION This chapter explains the procedures required before starting the operation 1 The same communication is available using the predefined protocol By the Predefined protocol programs can be crea...

Страница 38: ...4 2 4 2 4 PROCEDURES PRIOR TO OPERATION MEMO 4...

Страница 39: ...C24 5 1 Overall Configuration 1 When installing the C24 to the CPU module Display unit optional Power supply module CPU module END cover RS 232 adapter optional LJ71C24 1 1 For the RS 232 adapter ref...

Страница 40: ...C L CPU Module User s Manual Hardware Design Maintenance and Inspection b Connecting an external device and multiple C24s Connect multiple C24s to a personal computer in a multidrop network From the p...

Страница 41: ...s Manual Hardware Design Maintenance and Inspection MELSEC L CC Link IE Field Network Head Module User s Manual b Communication support tools for external devices Item Name Model Remark MX Component S...

Страница 42: ...onfigurations and available functions when using the C24 1 System configurations System configurations combinations of the C24 and external device for data communication are shown below a External dev...

Страница 43: ...5 5 5 5 5 SYSTEM CONFIGURATION c External device and C24 with 1 n system configuration RS 485 RS 485 RS 232 d External device and C24 with m n system configuration RS 485 RS 485 RS 485...

Страница 44: ...Global function MELSEC Q L MELSEC Communication Protocol Reference Manual Programmable controller CPU monitoring function User s Manual Application b Communication using the predefined protocol Avail...

Страница 45: ...iving Chapter 11 Reading received data using interrupt programs Sending receiving ASCII data using ASCII BIN conversion User s Manual Application In general if data communication is performed using a...

Страница 46: ...nk IE Field Network Head Module User s Manual 6 1 1 Handling precautions When using the C24 note the following points 1 Do not drop the C24 or subject it to heavy impact since its case is made of resi...

Страница 47: ...mmunication The C24 performs send and receive processing when the CD DCD signal receive carrier detection is ON If the CD DCD signal is turned off during data communication the C24 initializes the tra...

Страница 48: ...re that this signal is always ON when the external device is ready to receive If DTR DSR control is not performed the DR DSR signal status is ignored 6 RS RTS signal 7 The C24 turns ON OFF this signal...

Страница 49: ...or The following RS 232 interface connector is used for the C24 DDK Ltd 9 pin D sub female screw type Mating screw M2 6 17L 10090 27 D9AC FA The following table shows the suitable connector shell for...

Страница 50: ...ing contents When data are communicated with half duplex communication When communication time and the RS and CS signals are controlled by the modem function 2 The ER DTR signal is controlled by the C...

Страница 51: ...le conforming to the RS 232 standard with 15m or shorter in length Diameter Type Material Temperature rating AWG28 to 24 Stranded Copper 60 C or more Recommended cable Oki Electric Cable Co Ltd 7 0 12...

Страница 52: ...evice according to its specifications d Ground the shield at only one point e Connect the FG signal wire and shield as follows Connection on the C24 side Notes FG signal Connect to the C24 connector h...

Страница 53: ...able of turning on and off the CD DCD signal Pin No 1 1 Connection example 1 When wiring shown above DTR DSR control or DC code control are available 2 Connection example 2 When wiring shown above DC...

Страница 54: ...RDA RDB LJ71C24 FG FG 1 The following describes the control signals 1 SDA SDB signals These are signals to send data from the C24 to the external device 2 RDA RDB signals These are signals for the C2...

Страница 55: ...minute Electrostatic capacitance 1 kHz 60nF km or less on average Characteristic impedance 100 kHz 110 10 Recommended conductor size 0 2 mm 2 to 0 75 mm 2 Diameter AWG22 to AWG16 Type Stranded Materi...

Страница 56: ...SG and FG signals to the external device connect them according to the specifications of the external device e Ground the shield at only one point f Connect the shield of the connection cable to the F...

Страница 57: ...g resistor of 330 1 4 W For RS 485 communications connect the terminating resistor of 110 1 2 W Differences between these terminating resistors 330 110 Brown Orange Orange Brown Brown Brown Gold Gold...

Страница 58: ...C24 with 1 1 system configuration Terminating resistor R R C24 Signal name SDA SDB RDA RDB External device RDA RDB SDA SDB RSA RSB CSA CSB SG FG SG FG FG Terminating resistor Signal name b External d...

Страница 59: ...cable RS 422 485 cable SDA SDB RDA RDB SG FG R R SDA SDB RDA RDB SG FG RS 422 485 cable c External device and C24 with n 1 multidrop system configuration Terminating resistor R SDA SDB RDA RDB SG FG...

Страница 60: ...RS 422 485 cable SD RD SDA SDB RDA RDB SG FG R SD RD SDA SDB RDA RDB SG FG SD RD SD RD RS 232 RS 232 Linked operation External device 2 C24 1 C24 2 Linked operation R 2 Connection example 2 Terminati...

Страница 61: ...DB POINT When there is a pull up or pull down resistor on the external device erroneous data is not received REMARKS The following describes the case when a pull up or pull down resistor is not instal...

Страница 62: ...en the Output control input is OFF the interface enters the high impedance state state in which data cannot be sent 3 Timing to start sending and to complete the transmission processing of the C24 Tim...

Страница 63: ...when sending data Output control input must be turned OFF when not sending data The C24 side automatically controls the output control input SDA SDB RDA RDB C24 SDA SDB RDA RDB C24 Receive data Send d...

Страница 64: ...programmed for nonprocedural protocol communication 2 When the same message format is used for request command and response in the predefined protocol communication proper communication with the othe...

Страница 65: ...0 K1 T0 H0 Send command Set echo back to Disable Set the value in the echo back enable disable setting area address 450 1C2H Data transmission program POINT The echo back enable disable setting must b...

Страница 66: ...dual station test to check whether or not there is any problem in the operation of the C24 2 In order to avoid problems set the CPU module to STOP status during the individual station test 3 Cable rem...

Страница 67: ...the CH2 side to ROM RAM Switch test 2 Set the communication protocol setting on the CH1 side to the number used for data communication with an external device following the test 3 Set the transmission...

Страница 68: ...form an Self loopback test Perform the test operation according to Section 6 4 2 b Start the data communication with external devices 1 Set the switch settings on GX Works2 according to in Section 7 3...

Страница 69: ...ing error Check the set values refer to Section 7 3 and perform the test again 1 CH NEU 1 ON Test completed CH ERR 1 ON CH1 RAM error CH2 ROM error Check the module installation status and perform the...

Страница 70: ...cables to the RS 422 485 interface on a terminal block Procedure 2 Communication protocol setting and transmission setting refer to Section 7 3 1 In the switch setting set the communication protocol s...

Страница 71: ...ure 5 Ending the Self loopback test 1 When the result of the test is normal Start the data communication with external devices by the following procedure 1 Set the switch settings on GX Works2 accordi...

Страница 72: ...e power supply capacity Module is not connected correctly Reinstall the module properly CH C N Error in the cable CPU module or the C24 Check each module and remove the cause of the error Reconnect th...

Страница 73: ...settings when performing a loopback test on the interface on the CH1 side Item Setting value Operation setting Independent Data Bit 7 Parity Bit Exist Odd even parity Odd Stop bit 1 Sum check code Non...

Страница 74: ...he test is normal Perform the following procedure according to the function used and start data communication Set the switch settings with GX Works2 Refer to Section 7 3 Turn on the station on which t...

Страница 75: ...adecimal Character A part The same data Start data to be sent by the CPU module side Character B part S T X E T X 02H 30H 30H 46H 46H 30H 35H41H42H 43H 44H 45H 03H 41H 33H H L 0 0 H L F F H L 0 5 A B...

Страница 76: ...parameter settings monitor test and others for the C24 are performed by GX Works2 The same settings can be configured in GX Developer and GX Configurator SC For details refer to Appendix 4 Refer to th...

Страница 77: ...ew Module Setting screen Setting description Item name Settings Module Type Set Serial Communication Module Selection Module Name Select the module model name to connect Example LJ71C24 Mounted Slot N...

Страница 78: ...setting For details refer to Section 7 3 2 Various_Control_Specification Set the transmission specification with external devices Applicable protocol Protocol Setting items MC Non Bi Pd Reference RTS...

Страница 79: ...e Message wait time designation For conversion designation ASCII BIN conversion designation for Nonprocedural Bidirection User s Manual Application For designation of communication control Echo back a...

Страница 80: ...point designation Monitoring condition designation judgment condition designation Monitoring condition value designation Transmission pointer designation for condition agreement transmission and nonp...

Страница 81: ...zation time DR DSR signal valid invalid designation For designation of modem function 3 Circuit disconnect wait time programmable controller CPU watch use Remote password mismatch notification count d...

Страница 82: ...designation 2 Last frame No designation 1 For designation of on demand user frame Last frame No designation 2 User frame use enable disable designation First frame No designation 1 to 4 For designatio...

Страница 83: ...tatus on CH2 side CH1 ERR Section 13 2 Section 15 1 1 Communication protocol status current Operation setting Data Bit Parity Bit Odd even parity Stop bit Sum check code Online Change Setting modifica...

Страница 84: ...and mode switching Switch setting error and mode switching error status Linked operation setting Section 15 1 6 For confirmation of user frame Number of registered user frames Appendix 1 For confirmat...

Страница 85: ...rence Transmission area Chapter 10 Chapter 11 Transmission area User free area Appendix 1 For transmission data Transmission area User free area 2 Appendix 1 Number of continuous executions Predefined...

Страница 86: ...window Intelligent Function Module Module model name Switch Setting Setting screen POINT When GX Works2 or a GOT is connected to the C24 on a 1 1 one to one basis The switch setting is not required f...

Страница 87: ...tional protocol 3 Parity bit This sets whether the parity bit vertical parity should be odd parity or even parity when adding the parity bit vertical parity according to the specifications of the exte...

Страница 88: ...device requests the CPU module to write data while it is running The available functions differ depending on the setting values when the online change is enabled Check in the write allow setting and w...

Страница 89: ...col setting is set to MELSOFT Connection is automatically set to Auto Setting In this case the data is transmitted at the speed set on GX Works2 Set Auto Setting for the other interface to which no ex...

Страница 90: ...C frame or QnA compatible 2C 3C 4C frames MC protocol Format 5 Set for communication with binary code in a QnA compatible 4C frame Nonprocedural protocol Set for communication using nonprocedural prot...

Страница 91: ...are connected on the same line with multidrop connection specify the serial communication module to communicate with external devices by the station number Set the station numbers from 0 to 31 Set the...

Страница 92: ...on both CH1 and CH2 sides to the same specification Communication rate setting Match the external device Match the external device Communication protocol setting For linked operation setting Set to an...

Страница 93: ...ARKS The following describes the header information that is added by the C24 to a message in linked operation 1 When communicating with ASCII code Formats 1 to 4 The following 13 or 15 character heade...

Страница 94: ...19 7 SETTINGS FOR THE C24 7 3 6 Precautions For the interface that is not used for communication no cable connection define the switch settings as follows 1 When not using the CH1 2 When not using th...

Страница 95: ...C24 7 4 Various Parameter Settings and Writing to the Flash ROM Initial values of the buffer memory can be changed by setting and writing various parameters to the flash ROM Set various parameters ac...

Страница 96: ...cessary 1 Displaying each parameter setting screen Select Intelligent Function Module Module model name from the Project window and select either of the parameter setting items Parameter setting items...

Страница 97: ...eters in the setting screen of each parameter for each protocol The following shows the procedure 1 Display the setting screen of each parameter 2 Select a protocol from Display Filter Select a protoc...

Страница 98: ...ting to the flash ROM Display the Flash ROM Operation screen by the following procedure Online Write to PLC 2 Selecting a module and the parameters to be written a In the PLC Module tab select the Tar...

Страница 99: ...rom GX Works2 before the system is started Writing to the flash ROM normally takes approximately one to three seconds However note that sometimes it may take approximately one to two minutes If writin...

Страница 100: ...of the auto refresh setting The auto refresh settings are used to automatically store information stored in the C24 s buffer memory into a specified device of the CPU module By setting the auto refres...

Страница 101: ...ing auto refresh Set a CPU module device that stores the information in the setting item field Applicable devices are any of X Y M L B T C ST D W R and ZR 3 Writing setting values Execute the writing...

Страница 102: ...with an interrupt program of the CPU module during communication using the nonprocedural bidirectional protocol By performing this setting an interrupt program starts when data is received from an ext...

Страница 103: ...inters I for use in the sequence program 3 Start I O No Intelligent Module Side Set the start I O No for the C24 4 Start SI No Intelligent Module Side 1 Assign control numbers SI on the C24 side to th...

Страница 104: ...d to perform various operations including the monitoring of the C24 s operating status and setting values and the testing of its output signals The monitor test operations can be performed only via on...

Страница 105: ...7 30 7 30 7 SETTINGS FOR THE C24 MEMO...

Страница 106: ...ocol refer to the MELSEC Q L MELSEC Communication Protocol Reference Manual ENQ Command Characters Sam check code ETX STX Characters Sam check code 1 CPU module device memory read write This function...

Страница 107: ...ames are mainly used to access all devices and files of the Q L QnACPU from the external device It is also possible to access ACPU devices 2 QnA compatible 2C frame This frame can access the device me...

Страница 108: ...setting For the communication protocol setting select one from the MC protocols Formats 1 to 5 Configure other settings according to the system being used For details of the settings refer to Chapter...

Страница 109: ...PROTOCOL 8 1 3 Support for the LCPU remote password function The remote password function prevents unauthorized access to the LCPU To enable this function set the remote password to an LCPU For detai...

Страница 110: ...programmable controllers By using MX Component the system can be configured for each user Furthermore the communication program for the external device can be created without considering the detailed...

Страница 111: ...buffer memory data can be taken into communication packets and thereby this protocol communication is suitable for data that may change every transmission The protocol setting required to communicate...

Страница 112: ...s Up to 128 Packets Up to 256 However some packets to be registered may cause capacity shortage In this case the maximum numbers of packets above may not be registered The usage rate of the packet dat...

Страница 113: ...GX Works2 Tool Intelligent Function Module Tool Serial Communication Module Predefined Protocol Support Function Step 2 Create a new file Select File New and click Add Step 3 Register the protocol of...

Страница 114: ...ommunication a When selecting Predefined Protocol Library Select a protocol from the predefined protocol library Specify the send or receive data storage area b When selecting Add New Click Element Un...

Страница 115: ...instruction Set values are in the Send data storage area Protocol No 1 is specified Protocol is executed Normal completion flag ON Error completion flag ON Error code is stored CPRTCL execution comman...

Страница 116: ...vision Maximum length 2048 bytes The predefined protocol function communicates with other devices using the following procedures communication types For the operation image of each communication type...

Страница 117: ...sending Sends a specified code and character string When receiving Verifies a header and receive data The following table is the items Item Description Remark Element Name Set a name of the element Co...

Страница 118: ...he end of a packet Use this element when a code character string indicating the end of the packet is included The following table lists the items Item Description Remark Element Name Set a name of the...

Страница 119: ...Length Select the data length on the line The range is 1 to 4 Forward Direction Upper Byte Lower Byte When sending Sends a calculated length from the upper byte When receiving Receives data from the...

Страница 120: ...ariable Fixed number of data Variable number of digits 1 and Non verified reception Variable number of characters is placed behind a Length and they are not included in the calculation range of the Le...

Страница 121: ...receiving Receives data of which the length is variable Data Length Maximum Data Length Set the length of data to be sent and received For the variable length data set the maximum data length that ca...

Страница 122: ...the upper byte and lower byte by word 2 bytes When Unit of Stored Data is Lower Byte Upper Byte and Data Length is an odd number of bytes stores the last byte to the upper byte When Unit of Stored Dat...

Страница 123: ...e setting of Unit of Stored Data y When Lower Byte Upper Byte is selected the same size as the data length is occupied However when the data length of a send packet is an odd number the upper byte low...

Страница 124: ...length of a send packet is an odd number the upper byte lower byte for Byte Swap of the last device is not transmitted When the data length of a receive packet is an odd number one byte of 00H is adde...

Страница 125: ...ms the verify receive process y Multiple Non conversion variable Fixed length elements can be placed in a packet and multiple Non conversion variable Variable length elements can also be placed in a s...

Страница 126: ...cimal HEX Treats receive data as ASCII decimal converts it to numeric value and stores it to the data storage area Conversion At receiving ASCII Hexadecimal HEX Treats receive data as ASCII hexadecima...

Страница 127: ...rsion Unit Select how many words are manipulated as one data in the data storage area For Word converts data manipulating one word as one data For Double word converts data manipulating two words as o...

Страница 128: ...ge area 1 n Data quantity storage area Send packet Users store the number of the send data Receive packet The C24 stores the number of the receive data Data storage area Send packet Users store the se...

Страница 129: ...e Point the decimal point position is set in the data storage area Data storage area Numeric data Decimal point position 0h 1h In the decimal point position area the decimal point position is set as f...

Страница 130: ...7890 499602D2H 10 0AH 12345678 90 1234567890 499602D2H 100 64H 1234567 890 1234567890 499602D2H 1000 3E8H 1 234567890 1234567890 499602D2H 1000000000 3B9ACA00H e Range of value that can be used in the...

Страница 131: ...a period which is not at the specified digit is received An ASCII BIN conversion error 7F20H may also occur when variable point is selected and a period which is at the beginning or end of a unit of d...

Страница 132: ...ta ends up with three digits while the setting of Number of Digits of Data is four digits y When receiving data of which the number exceeds the Maximum number of data the C24 stores data as many as th...

Страница 133: ...mber of data is 2 or more or the number of data is 1 with no delimiter only one Conversion variable can be placed in a packet and it needs to be placed in the order mentioned in Variable number of dat...

Страница 134: ...culated check code is sent When receiving Select a format in which data are received Not settable when Processing Method is 16 bit CRC for MODBUS Data Length Select the data length on the line byte Th...

Страница 135: ...art Select the starting element number of the calculating range The range is 1 to 32 Calculating Range End Select the ending element number of the calculating range The range is 1 to 32 POINT y When C...

Страница 136: ...wise place any of the following data immediate after a Non verified reception Static Data Terminator Check code Static Data Check code Terminator 3 Two or more of the following four elements cannot be...

Страница 137: ...turns ON only when the communication protocol setting is set to predefined protocol 1 ON OFF timing of the predefined protocol ready X1D After the protocol setting data is written to a flash ROM X1D t...

Страница 138: ...is the predefined protocol mode Communication protocol after change CH1 or CH2 is the predefined protocol mode ON ON Mode switching request Y2 Y9 Mode switching X6 XD Predefined protocol ready X1D CH...

Страница 139: ...munication disabled C24 Predefined protocol ready X1D CH1 and CH2 are other than predefined protocol mode CH1 or CH2 is the predefined protocol mode ON OFF OFF OFF Communication protocol before change...

Страница 140: ...COMMUNICATION USING THE PREDEFINED PROTOCOL Communication protocol before change CH1 or CH2 is the predefined protocol mode Communication protocol after change CH1 and CH2 are other than the predefin...

Страница 141: ...nd Mitsubishi inverter FREQROL A700 described as inverter or FR A700 hereafter as a connection target device are used in this setting example 9 5 1 System configuration wiring example The system confi...

Страница 142: ...ROL A700 CPU Device Check code D300 Inverter station number Header Check code Operation mode value Store the operation mode value in the CPU device D201 Terminator Header Terminator D201 Manufacturer...

Страница 143: ...Project window Intelligent function module Right click New Module 2 Set the following items and click the OK button Display Setting screen Display Setting details Item Setting details Module Type Set...

Страница 144: ...on protocols with external devices 1 Display the Switch Setting screen Project window Intelligent Function Module Module model name Switch Setting 2 Set items as follows and click the OK button Displa...

Страница 145: ...ool Serial Communication Module Predefined Protocol Support Function 2 Predefined Protocol Support Function screen File New 3 Click Add for Protocol No in the Protocol Setting screen 4 The Add Protoco...

Страница 146: ...cell under Element Setting displayed in red of Element No 2 Click 7 In the Element Setting Conversion Variable screen enter D300 to Send Data Storage Area and click the OK button 8 The packet setting...

Страница 147: ...r Element name Data storage area specification 2 Inverter Station Number D200 NOR RD Data 4 Digits Data 3 Read Data D201 2 Inverter Station Number D202 ERR NAK Response 3 Error Code D203 3 Writing dat...

Страница 148: ...ruction execution command M1 Status display device at completion D300 Inverter Station Number designation device M101 Normal completion flag D10 Execution result storing device for the CPRTCL instruct...

Страница 149: ...ve packets and communication control signals can be checked from the displayed trace result For details refer to Section 13 1 b Check on the Protocol execution log 1 Display the Protocol execution log...

Страница 150: ...e Protocol execution log screen can be selected from the following according to the log registration condition Only the failed protocols are displayed The execution status and log of all protocols are...

Страница 151: ...ta format Any data Send Receive Any data POINT The predefined protocol is recommended for data communication appropriate to the protocol of the external device such as a measuring instrument or barcod...

Страница 152: ...hanged to any setting values by the user using GX Works2 S T X A B C D E F G H E T X 10 STX D F H B A G E C ETX 00H 0AH 41H 02H 43H 42H 45H 44H 47H 46H 03H 48H 02H 41H 42H 43H 44H 45H 46H 47H 48H 03H...

Страница 153: ...c The receive complete code can be changed to match the specifications of the external device An arbitrary 1 character 1 byte code within the 00H to FFH range can be designated d The C24 issues a rec...

Страница 154: ...time timer 0 if the received complete code and the received data count are not decided For the nonprocedural protocol at the non reception monitoring time format refer to the User s Manual Applicatio...

Страница 155: ...ata count default value is set to 511 words However it can be changed within the size of the receive data storage area depending on the data contents exchanged with the external device POINT 1 When th...

Страница 156: ...m the external device and the receive data count in order to read the receive data to the CPU module By default the receive area is assigned to addresses 600H to 7FFH CH1 side and A00H to BFFH CH2 sid...

Страница 157: ...ting area address 400H to 1AFFH 2600H to 3FFFH b When changing the position and size of the receive area in the buffer memory if any of the functions below are used concurrently make sure that the add...

Страница 158: ...a of the C24 shown in the above figure is the memory 8448 bytes that temporarily stores the data to be received while a request for the reading of the receive data is being made to the CPU module The...

Страница 159: ...eption data read request X3 Sequence program Read data count 100 words 2 Data reception when Receive data storage area Receive data length Since the following control is performed data link processing...

Страница 160: ...t instead Receive data storage area Data length received from external device Example When 550 words of data is received through the CH1 interface in three parts when the CH1 interface receive area co...

Страница 161: ...ata may not be received properly 1 Start the self station programmable controller CPU The values specified with GX Works2 are stored in the C24 2 When the amount of data specified by the received data...

Страница 162: ...eceive channel 2 Clear the reception result and receive data count storage device to 0 3 Specify the allowable receive data count 4 Store the receive data in the specified device 5 After completed the...

Страница 163: ...upt programs For details on reading receive data with interrupt programs refer to the User s Manual Application Note that if the reading of data received from the same interface is to be performed it...

Страница 164: ...eceived data that could not be converted using the ASCII BIN conversion User s Manual Application Received data larger than the size that could be stored in the OS area of the C24 Section 6 1 2 1 Conf...

Страница 165: ...l Function Explanation Program Fundamentals Indicator LED of C24 ERR LED turns on Chapter 15 3 Precautions The following shows the precautions of reception data in case of errors a Storing receive dat...

Страница 166: ...24 ready X1E Reception data read request X3 Reception abnormal detection X4 INPUT instruction INPUT instruction complete device INPUT instruction complete device 1 normal completion abnormal completio...

Страница 167: ...o 3 3 Clear the reception data by GX Works2 Refer to 4 REMARKS When transmitting data to an external device from the C24 do not execute a clear request of the receive data by FROM TO instruction or GX...

Страница 168: ...struction is executed while the reception data read request X3 XA or reception abnormal detection signal X4 XB is turned on the CSET instruction is kept waiting until the signal is turned off 2 The re...

Страница 169: ...ar request address A8H 2 Receive data clear processing is performed for the C24 s OS area Refer to Section 10 1 2 3 When receive data clear processing is completed Receive data clear request address A...

Страница 170: ...DURAL PROTOCOL Example The following is an example program for clearing received data with the FROM TO instructions while send receive processing is performed using dedicated instructions OUTPUT INPUT...

Страница 171: ...10 21 10 21 10 DATA COMMUNICATION USING THE NONPROCEDURAL PROTOCOL Send request Receive data clear in progress Receive data clear acknowl edgement send processing...

Страница 172: ...procedure using GX Works2 1 Register C24 to Intelligent Function Module Monitor For the operating method of GX Works2 refer to the GX Works2 Version 1 Operating Manual Intelligent Function Module 2 Se...

Страница 173: ...method after receiving data Other than through the setting using GX Works2 or the TO instruction at the startup of the C24 the received data count and receive complete code setting values can be chan...

Страница 174: ...hen the status of the I O signals relating to the reading of receive data is as follows Reception data read request X3 XA or reception abnormal detection X4 XB ON Reception data read completion X1 Y8...

Страница 175: ...Y00 to X Y1F Reads the data that is equal to the receive data count Change the setting value for the received data count as needed Change the setting value for the receive complete code as needed Read...

Страница 176: ...TX 03H 10 0AH 00H 3 Transmission data ETX H 03H 48H 41H 03H External device A STX 1 2 OUTPUT instruction C24 Transmission data count Transmission data CPU module OUTPUT instruction completion device O...

Страница 177: ...data count that are transmitted from the CPU module to the external device via the C24 By default the transmission area is assigned to addresses 400H to 5FFH CH1 side and 800H to 9FFH CH2 side Buffer...

Страница 178: ...address 400H to 1AFFH 2600H to 3FFFH b When changing the position and size of the receive area in the buffer memory if any of the functions below are used concurrently make sure that the addresses of...

Страница 179: ...ry Transmission data count In accordance with the word byte units designation Word units 5 Bytes units 10 Transmission data designation Sequentially store the transmission data to low address L H next...

Страница 180: ...esignation address 401H to 1 Starts the host station programmable controller The setting values in GX Works2 are stored in the C24 2 Inputs the user data transmission command signal 3 Executes the OUT...

Страница 181: ...t sends the data 4 Clear the transmission result storage device to 0 5 Specify the transmission data count in word units Specify K10 when the unit is bytes 6 The transmission data stored in the specif...

Страница 182: ...A0DH 0001H D 0 D 1 D 2 D11 D15 4241H 0A0DH C24 For normal completion 0005H 0005H For abnormal completion Interface number Transmission result Transmission data count to to to to to other than 0000H Tr...

Страница 183: ...User s Manual Application Designated number of transmission data was larger than the size that could be stored in the transmission area Section 6 2 2 1 Confirmation using the sequence program a Detec...

Страница 184: ...screen GX Works2 Version 1 Operating Manual Intelligent Function Module Display unit Buffer memory monitor MELSEC L CPU Module User s Manual Function Explanation Program Fundamentals Indicator LED of...

Страница 185: ...ternal device When nothing is transmitted from the C24 to the external device through the RS 422 485 interface a framing error may be generated by the noise etc in the external device Send an arbitrar...

Страница 186: ...ption message may be missing data if an error occurs To assure the correct transmission and reception of data it is recommended that a normal error response message is received and a response message...

Страница 187: ...rograms for sending and receiving data are required on the CPU module side ENQ Data length When receiving data Any data Sum check code ACK When normal NAK Error code When abnormal 1 External device se...

Страница 188: ...eceived is recognized using the data length information contained in the message messages of any size can be sent from the external device Sequence program 3 Read BIDIN instructions External device 1...

Страница 189: ...switch setting of GX Works2 messages are not checked using the sum check codes 2 If the message has normally been received the reception data read request X3 XA turns ON If an error has been detected...

Страница 190: ...ta length receive data count and data area received from an external device The receive area is assigned to addresses 600H to 7FFH CH1 side and A00H to BFFH CH2 side at initial setting Buffer memory R...

Страница 191: ...ion and size of the receive area in the buffer memory if any of the functions below are used concurrently make sure that the addresses of the receive area do not overlap with the buffer memory address...

Страница 192: ...esponse message When the data length unit is in bytes 00H is stored in the higher byte of the last data storage position in the receive area when the data length of the message is an even byte 3 Conte...

Страница 193: ...lue as is from the lower byte L c Data portion This consists of an array of original one byte data to be transmitted to the external device side which can handle 00H to FFH code data 1 For data commun...

Страница 194: ...ata length is received the succeeding data received will be ignored up to the control code that follows Refer to a The following example shows the contents of a sum check code in the message 2 For dat...

Страница 195: ...device transmit the codes specified by the user The error codes 0022H to 005FH that are not used by the C24 can be used The C24 stores the received error codes as a completion status in the control co...

Страница 196: ...al completion Receive data count address 600H Receive data address 601H to 7FFH Receive data One scan Response transmission Data reception C24 ready X1E BIDIN OFF m n 1 Start the host station programm...

Страница 197: ...count 4 The receive data within the allowable receive data count user specified is read from the receive data storage area in the buffer memory Specify the transmission data count in word units Specif...

Страница 198: ...he User s Manual Application Note that if the reading of data received from the same interface is to be performed it is not possible to combine the reading of data received by the main program and rea...

Страница 199: ...eption monitoring time timer 0 A timeout occurred for the transmission monitoring time timer 2 Data that could not be converted with the ASCII BIN conversion was detected User s Manual Application Rec...

Страница 200: ...r which an error was detected is ignored and a response message indicating an abnormal completion NAK message is sent to the external device If an error has been detected when receiving the message th...

Страница 201: ...Send instruction Contents BIDOUT 1 Data such as control data and transmission data are stored in the device designated with the BIDOUT instruction and then the BIDOUT instruction is executed 2 The tr...

Страница 202: ...ount that are transmitted from the CPU module to the external device via the C24 By default the transmission area is assigned to addresses 400H to 5FFH CH1 side and 800H to 9FFH CH2 side 400H 401H 5FF...

Страница 203: ...anging the position and size of the receive area in the buffer memory if any of the functions below are used concurrently make sure that the addresses of the transmission area do not overlap with the...

Страница 204: ...smission area Example When ABCDEFG123 is sent H L 02H 77H 33H 32H 31H 47H 46H 45H 44H 43H 42H 41H 00H 05H 3 2 1 G F E D C B A H L ENQ Sum check code 5 00H 05H B 42H D 44H F 46H 1 31H 3 33H A 41H C 43H...

Страница 205: ...ansmission is explained below For details on the BIDOUT instruction for data transmission refer to Chapter 12 G BIDOUT Un D0 D11 M0 M0 M1 M1 Transmission instruction Create transmission data from D11...

Страница 206: ...C24 2 Inputs the user data transmission instruction signal 3 Executes the BIDOUT instruction after storing the transmission data and the control data for the BIDOUT instruction in the device Data is...

Страница 207: ...at sends the data 4 Clear the transmission result storage device to 0 5 Specify the transmission data count word units Specify K10 when the unit is bytes 6 The transmission data stored in the specifie...

Страница 208: ...esignation Address 257H 400H 401H 5FFH C24 4241H 0A0DH 0001H 0005H D 0 D 1 D 2 D11 D15 4241H 0A0DH For abnormal completion Interface number Transmission result Transmission data count Transmission dat...

Страница 209: ...rred for the transmission monitoring time timer 2 Data that could not be converted with the ASCII BIN conversion was detected User s Manual Application Designated the transmission data count that exce...

Страница 210: ...firm the errors Item Reference Module s Detailed Information screen Chapter 15 Error History screen Chapter 15 GX Works2 Intelligent Function Module Monitor screen GX Works2 Version1 Operating Manual...

Страница 211: ...ansmission 1 1 is complete Posts normal end or abnormal end according to whether or not the CPU module received a response message through the buffer memory Transmits a response message 2 2 after data...

Страница 212: ...1 1 2 2 1 1 1 2 2 POINT When the entire message of 2 1 was received while transmitting the message of 1 1 in the illustration The C24 turns ON Receive read request X3 X4 of 2 1 after sending all of 1...

Страница 213: ...message reception processing as described below During message transmission processing time check by timer 1 response monitoring time is performed 1 Message transmission 1 1 in the illustration When t...

Страница 214: ...CD terminal in full duplex communications through the RS 232 interface 2 As a data transmission procedure data transmission from the external device or the C24 should be performed after a response for...

Страница 215: ...received thereafter 5 External device time out check When checking time out up to reception of the response message at the external device during data transmission from external device to the C24 mak...

Страница 216: ...2 7 Communication status confirmation SPBUSY Reads the status of data transmission reception via a dedicated instruction Section 12 8 Receive data clear CSET Perform the receive data clear without sto...

Страница 217: ...2 X Y M L F V B T ST C D W R ZR K H 1 Word device bit designation can be used as bit data Word device bit designation is done by designating Word device Bit No Specify the bit number in hexadecimal Fo...

Страница 218: ...tting data D Bit device number to be turned on at completion of execution System Bit The file register per local device and program cannot be used as the set data Control data Device Item Setting data...

Страница 219: ...ution ONDEMAND The next instruction will be ignored until the active instruction has been completed However simultaneous execution is available when channels to be used are not the same CSET Dedicated...

Страница 220: ...peration during execution of an ONDEMAND instruction Sequence program ONDEMAND instruction Completion device Status display device at completion END processing END processing Execution of ONDEMAND ins...

Страница 221: ...0 to D11 5 Reset the normal completion flag 6 Reset the abnormal completion flag 7 Set the transmission ready flag 8 On demand transmission is executed 9 Normal completion 10 Abnormal completion 11 Re...

Страница 222: ...RTCL GP CPRTCL n 1 S D n2 G CPRTCL Un n 1 S D n2 GP CPRTCL Un Executing condition Setting data Setting data Description Set by Data type Un Start I O signal of the module 00 to FE Upper 2 digits when...

Страница 223: ...s stored When the communication type is Send only 0 is stored If the error occurs to the first protocol executed 0 is stored When the functional protocol is executed 0 is stored 4 S 17 Verification ma...

Страница 224: ...truction in the same channel Instruction 1 Availability of simultaneous execution Processing of simultaneous execution CPRTCL y The next instruction will be ignored until the active instruction is com...

Страница 225: ...ND processing of the scan where the CPRTCL instruction is completed and turns OFF at the next END processing Sequence program CPRTCL instruction Completion device Status display device at completion E...

Страница 226: ...S 0 In case of operation errors Error flag SM0 turns ON and the error code is stored in SD0 Refer to the following according to the error code and check and correct the error Error code 4FFFH or less...

Страница 227: ...struction CPRTCL instruction y The operation fails and the error code is stored in the execution result S 0 y When executing multiple protocols consecutively if the cancellation is requested to the nt...

Страница 228: ...e start I O number of the C24 is 0000 Devices used by user Device Purpose M100 Cancellation request command flag M101 Cancellation request flag M110 Turns ON during execution of the CPRTCL instruction...

Страница 229: ...Turns ER DTR signal ON DTR ON 205 Turns ER DTR signal OFF DTR OFF 206 Turns RS RTS signal ON RS ON 207 Turns RS RTS signal OFF RS OFF c in this section 1 Character strings that are stored to the proto...

Страница 230: ...o be turned on at completion of execution System Bit The file register per local device and program cannot be used as the setting data Control data Device Item Setting data Setting range Set by 3 S1 0...

Страница 231: ...aneous execution OUTPUT The next instruction will be ignored until the active instruction has been completed However simultaneous execution is available when channels to be used are not the same INPUT...

Страница 232: ...processing Operation during execution of an OUTPUT instruction OUTPUT instruction Execution of OUTPUT instruction Completion of transmission by the OUTPUT instruction ON ON OFF OFF END processing END...

Страница 233: ...ored 3 Specify the number of the interface CH that sends the data 4 Clear the transmission result storage device to 0 5 Specify the transmission data count in word units Specify K10 when the unit is b...

Страница 234: ...he devices in which receive data is stored System Device name Setting data D2 Bit device number to be turned on at completion of execution System Bit The file register per local device and program can...

Страница 235: ...ion of the INPUT instruction or executing the INPUT instruction during execution of another instruction in the same channel Instruction 1 Availability of simultaneous execution Handling of simultaneou...

Страница 236: ...ion Normal completion Off with no change Abnormal completion Turns on at the END processing of the scan where the INPUT instruction is completed and turns off at the next END processing Error 1 When a...

Страница 237: ...operly 1 Specify the receive channel 2 Clear the reception result and receive data count storage device to 0 3 Specify the allowable receive data count 4 Store the receive data in the specified device...

Страница 238: ...it device number to be turned on at completion of execution System Bit The file register per local device and program cannot be used as the setting data Control data Device Item Setting data Setting r...

Страница 239: ...is available when channels to be used are not the same PUTE GETE BUFRCVS SPBUSY UINI Dedicated instructions simultaneous execution error 7FF0H occurs in the dedicated instruction attempted later Avai...

Страница 240: ...completed the abnormal completion signal D 1 turns on and the error code is stored in the transmission result S1 1 In case of operation errors Error flag SM0 turns on and the error code is stored in...

Страница 241: ...ult storage device to 0 5 Specify the transmission data count in word units Specify K10 when the unit is bytes 6 The transmission data stored in the specified device is sent 7 After the BIDOUT instruc...

Страница 242: ...am cannot be used as the setting data Control data Device Item Setting data Setting range Set by 3 S 0 Receive channel Set receive channel 1 Channel 1 CH1 side 2 Channel 2 CH2 side 1 2 User S 1 Recept...

Страница 243: ...imultaneous execution is available when channels to be used are not the same CSET Dedicated instructions simultaneous execution error 7FF0H occurs in the dedicated instruction attempted later However...

Страница 244: ...by BIDIN instruction ON OFF OFF Sequence program BIDIN instruction Completion device Status display device at completion END processing END processing One scan END processing END processing Error 1 In...

Страница 245: ...pecified device 5 After completed the receive data within the allowable receive data count user specified is read from the receive data storage area in the buffer memory Once the BIDIN instruction is...

Страница 246: ...is started and 0 when the processing is completed The processing of each instruction is completed when the completion flag of each instruction is turned from on to off D 0 b15 to b4 b3b2b1b0 Stores th...

Страница 247: ...d check and correct the error Error code 4FFFH or less MELSEC L CPU Module User s Manual Hardware Design Maintenance and Inspection 7000H or later Section 15 2 Program example A program that reads the...

Страница 248: ...device at the host station that turns on for one scan at the completion of the instruction D2 1 also turns on at an abnormal completion System Bit Each of file registers for local device and program c...

Страница 249: ...dicated instruction attempted later However simultaneous execution is available when channels to be used are not the same INPUT the right column When instructions are executed in order of INPUT CSET D...

Страница 250: ...mal completion It turns on at the END processing of the scan at which the CSET instruction is completed and turns off at the next END processing Operation at execution of CSET instruction Scan Sequenc...

Страница 251: ...t the input output signals of the C24 are X Y00 to X Y1F 1 2 3 4 5 6 3 7 1 Set the execution type 2 Set the request type Reception data clear 3 Execute the reception data clear 4 Normal completion 5 A...

Страница 252: ...rk Circuit trace State monitor Protocol execution log display storage function for predefined protocol only 13 1 Circuit Trace The communication data and communication control signal between the C24 a...

Страница 253: ...s the procedure for the circuit trace Start of circuit trace Start circuit trace from GX Works2 Communicating with the external device Stop circuit trace in GX Works2 Circuit trace results are display...

Страница 254: ...al Communication Module Circuit Trace 2 Click the Module Selection button to select the module to trace in the Module Selection Circuit Trace screen Click the OK button 3 Select the channel to trace f...

Страница 255: ...signal status and receive error are displayed as described below RS ER DSR CS and CD signals All signals are displayed with blue lines When signal is ON When signal is OFF When the obtained data does...

Страница 256: ...d size of the C24 that stores the circuit trace data hereinafter referred to as the monitor buffer area Whether the circuit trace is stopped or continued when the timer 0 time out error occurs Basic o...

Страница 257: ...area Input the setting in hexadecimal Input range CH1 CH2 3 to 1A00 words 3 to F00 words for the user setting area Set the maximum address 1 for the trace data storage space to be in the range betwee...

Страница 258: ...een For the method for displaying it refer to Section 9 1 2 Display the Module Selection screen in the following procedure Predefined Protocol Support Function screen Debugging Support Function Module...

Страница 259: ...en Display Setting details Item Display Setting details X signal state monitor Displays the ON OFF status of the X signals Y signal state monitor Displays the ON OFF status of the Y signals RS 232 sig...

Страница 260: ...Status Displays the communication error status Switch Setting Mode Switching Error Displays the switch setting and or mode selection error status Communication Result Displays the error status of the...

Страница 261: ...b Display Setting screen Display Setting details Item Display Setting details Switch Setting Status for The Operation Displays the operation switch setting status Mode Switch Displays the predefined p...

Страница 262: ...een Display Setting details Item Display Setting details Execution Status Displays the protocol execution status Protocol Cancel Designation Displays the protocol cancel designation status Predefined...

Страница 263: ...hannel Up to 32 protocol execution logs can be checked If the number of the stored logs exceeds 32 the oldest log will be overwritten The protocol execution log can be checked in the following method...

Страница 264: ...fer to Section 9 1 2 Display the Module Selection screen in the following procedure Predefined Protocol Support Function screen Debugging Support Function Module Selection 3 Select the I O address and...

Страница 265: ...n logs screen can be selected from the following two according to the log registration condition Displaying only the failed protocols Displaying all execution statuses and execution logs The log regis...

Страница 266: ...log option specification for the buffer memory address 40E2H 40F2H Buffer memory address 40E2H 40F2H 1 0 b15 b0 0 Log registration condition 0 OFF Register failed protocols only 1 ON Register all prot...

Страница 267: ...fy that the terminal screws and the terminal block installation screws are securely tightened For items other than the listed above perform inspection according to the inspection items listed in the u...

Страница 268: ...ware Design Maintenance and Inspection 14 2 1 Procedure of C24 replacement and re registration of data The following shows the procedure of C24 replacement and re registration of data For the method o...

Страница 269: ...4 1 Disconnect the cables and the module itself 2 Replace the C24 and start up the C24 according to Chapter 4 PROCEDURES PRIOR TO OPERATION 3 Register the system setting data to the flash ROM of the C...

Страница 270: ...ble shooting from the display unit refer to MELSEC L CPU Module User s Manual Hardware Design Maintenance and Inspection 15 1 Checking the Status of the C24 This section explains how to check the stat...

Страница 271: ...rding to Section 15 3 POINT Each of the communications error status SIO PRO P S C N CH1 ERR and CH2 ERR turns on when an error occurs and keeps its on status even after the communication returns to no...

Страница 272: ...a transmission start The transmission became available and the data transmission is started resumed b SIO Indicates SIO error status Value Status Description Overrun or framing error occurred Overrun...

Страница 273: ...evice issued a data read request to the CPU module when online change is set to prohibit in the switch settings by GX Works2 For functions that cannot be used when online change is set to prohibit ref...

Страница 274: ...nd reception Command message being received i CH2 ERR Indicates Error occurrence status on CH2 side Value Status Description 0001 ON Switch setting error Mode switching error Transmission error Recept...

Страница 275: ...W switch Information 2 Screen items Item Description Reference 1 CONFIG Displays the communication rate setting and transmission setting on the CH1 side a CH1 MODE Displays the communication protocol...

Страница 276: ...Parity Bit OFF 0 None ON 1 Exist b3 Even odd parity OFF 0 Odd ON 1 Even b4 Stop bit OFF 0 1 ON 1 2 b5 Sum check code OFF 0 None ON 1 Exist b6 Online Change OFF 0 Disable ON 1 Enable b7 Setting modific...

Страница 277: ...2 3H Format 3 4H Format 4 5H Communication with MC protocol Format 5 6H Communication with nonprocedural protocol 7H Communication with bidirectional protocol 8H For linked operation setting 9H Commun...

Страница 278: ...rface 1 RS 232 control signal status address 254H 264H The RS 232 control signal status is stored as follows REMARKS 1 For details on signals for RS 232 refer to Section 6 2 1 2 Signals output from th...

Страница 279: ...sion sequence status storage area and the data communication status 6 1 6 is repeated afterward Values 7 to 9 are stored when mode switching or initialization of transmission sequence is performed E N...

Страница 280: ...200H Station number 0 to 31 b15 to 2 Switch setting error and mode switching error status address 203H b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 Buffer memory address 203H Ignore including...

Страница 281: ...s 250H to 251H Reads communication protocol setting and transmission setting description on CH2 from addresses 260H to 261H Restarts the C24 after checking the error code and resetting switches b15b14...

Страница 282: ...1 Station No instruction setting address 24FH b0 Station No 0 to 31 b15 Buffer memory address 24FH to 2 Communication protocol status address 252H 262H b0 Mode number currently operating Buffer memory...

Страница 283: ...description 2 Communication rate error D0 D1 CH1 side D2 D3 D4 Setting communication protocol number 6H nonprocedural protocol transmission setting description CH2 side Setting communication protocol...

Страница 284: ...resetting the CPU module or the head module Refer to 1 b in this section 1 Checking with GX Works2 Error codes that are corresponding to the errors occurred in the C24 can be checked by following eit...

Страница 285: ...module On GX Works2 select Diagnostics System Monitor and click the System Error History button 1 2 3 1 Error History List Error log of the module is displayed For errors occurred during initial proce...

Страница 286: ...smission status at the occurrence of the error Value of the buffer memory address 253H 263H is displayed Control signal status RS 232 control signal status at the occurrence of the error Value of the...

Страница 287: ...rror codes in the Error Code column Example If too many HST LOSS are displayed increase the number of errors to be collected per scan in the PLC RAS tab of the PLC Parameter dialog box For setting ref...

Страница 288: ...area 7101H 7102H System error The OS of the C24 detected some error 1 7103H Programmable controller access error Cannot communicate with the CPU module C N Increase the Response monitoring time timer...

Страница 289: ...Unusable command error An unusable command is issued to the access target CPU module C N Check and correct the external device transmit message and restart data communications If no error is found in...

Страница 290: ...s points exceeded the range PRO 7171H A device that cannot be designated was designated PRO 7172H A compatible 1C frame error Written number of monitoring points is incorrect For example 0 was designa...

Страница 291: ...ng due to a receive error 3 An error exists in the data packet sent from the other device 7D14H Response monitoring timeout error Response monitoring time timer 1 has timed out during transmission Dat...

Страница 292: ...ge the conversion size setting to Double word 2 If it exceeds the range for double word data change the element to Non conversion variable 7D20H Data length setting error data quantity setting error T...

Страница 293: ...C24 detected some error 1 7E4DH Error during data transmission Mode switching was executed during data transmission CHn ERR Make arrangements between the target device and CPU module so that mode swi...

Страница 294: ...function error Setting of the programmable controller CPU monitoring function is out of range Correct the setting of the programmable controller CPU monitoring function 7E63H Transmission measure sett...

Страница 295: ...is an error in the Flash ROM read write request contents Check the read write request data and designate the correct data 7F00H System error The OS of the C24 detected some error 1 The next data was r...

Страница 296: ...nal device 1 Processing method or code type of the error check code 2 Data length 3 Data flow 4 Complement calculation 5 Calculating range 7F25H Data length error The length of the received data excee...

Страница 297: ...taneously by multiple devices 7F69H Parity error Data does not match the parity bit setting A malfunction occurred in the network because the power source of the partner station was on or off Noise oc...

Страница 298: ...code list for use of the modem function and take corrective action Refer to Section 15 2 4 7FE6H Remote password error Remote passwords do not match Check the remote password and communicate again 7F...

Страница 299: ...rocessing 7FF7H Simultaneous access error Multiple external devices accessed a remote station on the same network at the same time Multiple external devices must not access a remote station on the sam...

Страница 300: ...as designated The number of processing points is outside the range for the command A device that does not exist was designated PRO 07H Character error Received data that cannot be used PRO Check and c...

Страница 301: ...ror in the data for connection designated by the data number for connection CHn ERR Recheck the dialing number of the external line 7FD8H System error The OS of the C24 detected some error 1 7FD9H Lin...

Страница 302: ...he message length of the message for notification 7FE5H There is an error in the designation of the no communication interval time Designate the no communication interval time in the range of 0 to 120...

Страница 303: ...and lost Section 15 3 13 Data that cannot be decoded was transmitted and received Section 15 3 14 Communication errors occurred check according to Section 15 2 1 Whether the cause of the communication...

Страница 304: ...error is detected before the head data of the command message in the set format is received the received data will be disregarded When communicating using nonprocedural protocol If the C24 detects a r...

Страница 305: ...l device loopback test the minimum parameters file must be written to the CPU module beforehand Power module 5 V current capacity is insufficient Calculate the 5 V current drain of each installed modu...

Страница 306: ...the cable connection port are matched External device transmission control signals are not turned ON Connect the wiring so that the DR DSR CS CTS and other transmission control signals are ready Note...

Страница 307: ...tocol and format for example ENQ 05H for Format 1 is received The C24 station No setting and message station No designation do not match Check the C24 station No setting and message station No designa...

Страница 308: ...external device While the CS CTS signal is OFF the C24 does not transmit data to the external device It must be ON when the external device is ready to receive data Although a transmission request was...

Страница 309: ...ved or fixed length data was not received Check if the end code set at the C24 and the end code transmitted from the external device are the same Check if the external device transmitted the fixed len...

Страница 310: ...ed protocol support function of GX Works2 check for the data being transmitted from the external device When proper data are being transmitted from the external device take action according to Section...

Страница 311: ...e added when NAK is transmitted is stored to the C24 buffer memory shown below it can also be checked at the C24 Error code storage buffer memory address CH1 side 25AH CH2 side 26AH Communication erro...

Страница 312: ...ram parameters etc was transmitted or Online Change is disabled by setting Enable the Online Change by command and restart data communications 15 3 9 Communication error P S Symptom Cause Corrective a...

Страница 313: ...ge from the external device Note Only the data 0 to 9 and A to F can be handled as character area data during communications using an MC protocol ASCII mode Therefore when transmitting a character str...

Страница 314: ...ule read processing time Note The nonprocedural protocol stores the data received up to first the end code received or fixed length data to the nonprocedural receive buffer memory and turns on the Rea...

Страница 315: ...during the dedicated instruction execution Read the execution result error code of control data of the dedicated instruction for which the abnormal completion signal has turned on and take the correc...

Страница 316: ...t error occurred Using the circuit trace communication data monitoring function of the predefined protocol support function of GX Works2 check for the data being transmitted from the external device W...

Страница 317: ...on Requested processing of the next transmission before the processing of the current transmission is completed Requested processing of the next reception before the processing of the current receptio...

Страница 318: ...efer to the User s Manual Application If response messages still cannot be received after changing the setting value check the communication protocol setting of the corresponding interface the ON stat...

Страница 319: ...the other side is data length 8 bits and without parity the number of transmission receive bits will be the same and the data will sent and receive without generating an error Transmission rate settin...

Страница 320: ...te of the CPU module There must not be any errors that stop the CPU module operation Note The following methods are available for testing if normal communications are possible with the C24 alone 1 Wit...

Страница 321: ...e GX Works2 connection system Correct the C24 s settings Callback connections from GX Works2 are refused by the C24 There is an error in the connection system s telephone No Check the telephone No Cha...

Страница 322: ...al protocol Pre defined Interrupt issuance was not designated Designate interrupt issuance Receiving by instruction other than BUFRCVS Use BUFRCVS instruction to receive interrupt data Cannot receive...

Страница 323: ...le decimal point Conversion variable fixed number of data variable number of digits number of data is 1 delimiter set 2 Non conversion variable variable length Conversion variable variable number of d...

Страница 324: ...e CH ERR clear request in the Intelligent Function Module Monitor screen the ERR LED of the C24 turns off and the stored error codes are initialized b When initializing the communication error informa...

Страница 325: ...us on CH1 side address 201H Communication error clear request for CH1 and to turn LED off address 0H LED ON status and communication error status on CH1 side address 201H 2 Example of a program for tu...

Страница 326: ...ction 15 2 2 When data is communicated using the predefined protocol Reads LED and communication error information from address 201H Reads switch setting error data from address 203H Reads data transm...

Страница 327: ...ssage is sent back to the external device are stored in the following areas When communicating with an A compatible 1C frame the error codes differ from the transmission error code When checking error...

Страница 328: ...rowed Error code 7140H Some of commands and or devices cannot be used Error code 7142H 714DH etc In the above case execute the programmable controller CPU information clear request POINT If initial ac...

Страница 329: ...ignal for communication stop 1 1 Create a program in which data communication processing will not be performed while the interlock signal for communication stop M100 is ON 5 Precautions a Execute the...

Страница 330: ...er memory assignments A buffer memory is configured with 16 bits per address Name default value etc of each address of the buffer memory is shown in the lists on the following pages 1 Abbreviations in...

Страница 331: ...INT Check if Flash ROM Write Enable Protection Status is set to Write Enable before executing the write operation to the flash ROM If Write Protection is displayed select Flash ROM Write Enable in the...

Страница 332: ...etting the buffer memory used by the on demand function Buffer memory head address designation addresses 160 A0H 320 140H Transmission buffer memory length designation addresses 163 A3H 323 143H 2 Ini...

Страница 333: ...2DH For Flash ROM access 0 No designation Other than 0 Registered data maximum 80 bytes 0 RW Not allowed Modem connection channel designation 46 2EH For designation of modem function 1 0 Non 1 CH1 2...

Страница 334: ...modifications b7 0 Disable 1 Enable Communication rate b8 to b11 50 bps to 230400 bps For system b12 to b14 All 0 145 91H 305 131H For designation of mode switching Transmission specifications after...

Страница 335: ...tion Data length designation 0000H to 3400H 0 RW Section 7 2 MELSEC Q L MELSEC Communication Protocol Reference Manual 162 A2H 322 142H Transmission buffer memory head address designation 400H to 1AFF...

Страница 336: ...H Transparent code b0 to b7 00H to FFH Transparent code Additional code b8 to b15 01H to FFH Additional code Receive transparent code designation 0000H No designation Other than 0000H Designated below...

Страница 337: ...stem area Flash ROM system parameters write result 544 220H For confirmation of flash ROM write result 0 Normal completion Other than 1 error code Abnormal completion RW Not allowed Modem function err...

Страница 338: ...fined protocol Transmission status current Operation setting b0 Data Bit b1 Parity Bit b2 Odd even parity b3 Stop bit b4 Sum check code b5 Online Change b6 Setting modifications b7 0 Independent 0 7 b...

Страница 339: ...075 1B7BH to 1BA3H For registration No 8004H 7076 to 7116 1BA4H to 1BCCH For registration No 8005H 7117 to 7157 1BCDH to 1BF5H For registration No 8006H 7158 to 7198 1BF6H to 1C1EH For registration No...

Страница 340: ...lback connection during fixed Setting 1 BH Auto Callback connection during designated number Setting 2 FH Auto Callback connection during max designated number is 10 Setting 3 0 8194 2002H For callbac...

Страница 341: ...o 8479 211CH to 211FH Use prohibited System area User frame receive format designation 1st to 4th 8224 to 8227 2020H to 2023H 8480 to 8483 2120H to 2123H 0 Format 0 1 Format 1 8228 to 8231 2024H to 20...

Страница 342: ...No designation 90H to CCH Device code Head device No designation 8273 to 8274 2051H to 2052H 8529 to 8530 2151H to 2152H 0 or more Head device No Read point designation 8275 2053H 8531 2153H 0 No desi...

Страница 343: ...ation 3 8452 2104H Data No for callback designation 4 8453 2105H Data No for callback designation 5 8454 2106H Data No for callback designation 6 8455 2107H Data No for callback designation 7 8456 210...

Страница 344: ...ation 9216 2400H Use prohibited System area 9217 2401H For flash ROM write count housing Flash ROM write count 0 to 1000 Write count 0 R Not allowed 9218 to 9427 2402H to 25FFH Use prohibited System a...

Страница 345: ...ot allowed GX Works2 Version 1 Operating Manual Intelligent Function Module 16449 4041H 16465 4051H Execution status 0 Unexecuted 1 Waiting for transmission 2 Sending 3 Waiting for data reception 4 Re...

Страница 346: ...led protocol executions are stored 1 Execution states and logs of all protocols are stored 0 RW Allowed Section 13 3 16611 to 16623 40E3H to 40EFH 16627 to 16639 40F3H to 40FFH Use prohibited System a...

Страница 347: ...Day 01H to 31H b15 b8 b7 b0 Hour 00H to 23H to to 0 R 16684 412CH 18476 482CH 0 No log Upper 8 bits Second Lower 8 bits Minute Second 00H to 59H Minute 00H to 59H b15 b8 b7 b0 0 R 16685 412DH 18477 4...

Страница 348: ...ohibited System area 20480 to 24575 5000H to 5FFFH Send receive area for pre defined protocol function Predefined protocol function buffer 0 RW Not allowed GX Works2 Version 1 Operating Manual Intelli...

Страница 349: ...H 8334 208EH 8343 2097H 8352 20A0H 8361 20A9H Designation of data No for connection for conditional transmission b CH2 side buffer memory address decimal hexadecimal N th block monitoring device 1 2 3...

Страница 350: ...onfirm the Serial No and Function Version For how to check the serial No and function version refer to the MELSEC L CPU Module User s Manual Hardware Design Maintenance and Inspection MELSEC L CC Link...

Страница 351: ...fer to the following MELSEC L CPU Module User s Manual Hardware Design Maintenance and Inspection Difference Item L series C24 Q series C24 Notification function No available Available Appendix 3 2 Pr...

Страница 352: ...ms for data communication processing to FB function block Also the time to start up programs can be shortened by monitoring and analyzing communication data on the communication circuit For details re...

Страница 353: ...e type and I O signal range of each module to be connected This section 1 Switch Setting Set the transmission specifications and communication protocols with external devices This section 2 Intelligen...

Страница 354: ...rotocols of each interface Switch number Description Reference Switch 1 Transmission speed setting and transmission setting on CH1 side a Switch 2 Communication protocol setting on CH1 side b Switch 3...

Страница 355: ...8 b2 Parity Bit OFF 0 None ON 1 Exist b3 Even odd parity OFF 0 Odd ON 1 Even b4 Stop bit OFF 0 1 ON 1 2 b5 Sum check code OFF 0 None ON 1 Exist b6 Online Change OFF 0 Disable ON 1 Enable b7 Setting m...

Страница 356: ...t 5 6H Communication with nonprocedural protocol 7H Communication with bidirectional protocol 8H For linked operation setting 9H Communication with predefined protocol EH ROM RAM Switch test FH Self l...

Страница 357: ...contents are the same as GX Works2 refer to Chapter 7 When using GX Configurator SC configure the settings in the following screens Screen name Application Flash ROM setting Change the initial values...

Страница 358: ...ntelligent function utility Start When auto refresh is set 2 To the next page When used via online operation 1 To the next page Select Tools Flash ROM setting from the menu bar When used via offline o...

Страница 359: ...No and select Module type and Module model name Auto refresh Select monitor test module screen Select Online Monitor Test from the menu bar 1 When using online operation Monitor Test screen Select a m...

Страница 360: ...d only Receive only or Send receive This section describes the respective operation images Appendix 5 1 1 When communication type is Send only The specified packet is sent once C24 Terminator Data Com...

Страница 361: ...xample of setting Standby time 0 Retry interval 0 Monitoring time other than 0 C24 Other device Execute dedicated instruction G P CPRTCL Completion device Status display device at completion t Transmi...

Страница 362: ...packet and the receiving process is performed The operation image of Receive only is as follows 1 Normal completion C24 Other device Execute dedicated instruction G P CPRTCL Completion device Receive...

Страница 363: ...When variables are included in receive packet elements variable parts are not verified With multiple receive packet specifications receive data are verified with registered receive packet information...

Страница 364: ...receive data matches the receive packet and the receiving process is performed The operation image of Send receive is as follows 1 Normal completion C24 Receive packet Receive packet OFF at normal co...

Страница 365: ...r clear POINT When variables are included in receive packet elements variable parts are not verified With multiple receive packet specifications receive data are verified with registered receive packe...

Страница 366: ...re discarded Data are compared again from the start of the receive packet and once the data are matched with the receive packet the data receiving operation is processed STX Specified receive packet S...

Страница 367: ...yte swap by word Only when the data length specification is 4 bytes ASCII hexadecimal ASCII decimal ASCII hexadecimal ASCII decimal Forward direction upper byte lower byte Reverse direction lower byte...

Страница 368: ...0000201H 3 Calculating range The following shows specification examples of the calculating range of Length Terminator Header Variable Check code Static data Packet element 1 Packet element 3 Packet el...

Страница 369: ...ta length Maximum data length Unit of stored data ABCD BADC ABCD BADC 00h D0 D1 D2 D3 D0 D1 00h 00h 00h Unit of stored data When Byte swap is Disable Lower byte Upper byte Lower bytes only Data storag...

Страница 370: ...storage area D0 4241H D1 4443H D0 4142H D1 4344H D0 0041H D1 0042H D2 0043H D3 0044H D0 0042H D1 0041H D2 0044H D3 0043H b The following table shows data to be stored in the data storage area when the...

Страница 371: ...k padded characters Deleting a delimiter Data length Maximum data length D0 When Conversion unit is Word CPU device G device Receive data numeric data Adding blank padded characters No delimiter 00001...

Страница 372: ...t When Conversion unit is Word D0 1234 FB2Eh Receiving data _ _12 34 No delimiter No blank padded character Variable number of digits No decimal point When Delimiter is Comma space Deleting a delimite...

Страница 373: ...ned Signed Signed Sign character Not settable Number of decimals No decimal point 2 No decimal point Delimiter No delimiter Comma Comma Send data 1 Header 00837 Terminator Header _ _ 8 37 Terminator H...

Страница 374: ...ap by word Only when the data length specification is 4 bytes ASCII hexadecimal ASCII hexadecimal Forward direction upper byte lower byte Forward direction upper byte lower byte Reverse direction lowe...

Страница 375: ...decimal to decimal FFEAH in hexadecimal is 65514 in decimal Data length Code type 1 byte 2 bytes 3 bytes 4 bytes ASCII hexadecimal A 41H EA 45H 41H FEA 46H 45H 41H FFEA 46H 46H 45H 41H ASCII decimal 4...

Страница 376: ...rom hexadecimal to decimal FFEAH in hexadecimal is 65514 in decimal Data length Code type 1 byte 2 bytes 3 bytes 4 bytes ASCII hexadecimal AE 41H 45H AEF 41H 45H 46H AEFF 41H 45H 46H 46H ASCII decimal...

Страница 377: ...d is extracted and converted from hexadecimal to decimal FFEAH in hexadecimal is 65514 in decimal Data length Code type 1 byte 2 bytes 3 bytes 4 bytes ASCII hexadecimal FFAE 46H 46H 41H 45H ASCII deci...

Страница 378: ...One s complement of 0000 01FDH is FFFF FE02H When Code type is ASCII decimal the last one word is extracted and converted from hexadecimal to decimal FF02H in hexadecimal is 65026 in decimal Data leng...

Страница 379: ...from hexadecimal to decimal FF02H in hexadecimal is 65026 in decimal Data length Code type 1 byte 2 bytes 3 bytes 4 bytes ASCII hexadecimal 20 32H 30H 20E 32H 30H 45H 20EF 32H 30H 45H 46H ASCII decima...

Страница 380: ...rd is extracted and converted from hexadecimal to decimal FF02H in hexadecimal is 65026 in decimal Data length Code type 1 byte 2 bytes 3 bytes 4 bytes ASCII hexadecimal EF20 45H 46H 32H 30H ASCII dec...

Страница 381: ...in above 1 3 Shift the result of 2 one bit right 4 If the latest significant bit in above 2 is 1 exclusive OR XOR the result of 3 with the generator polynomial A001H If the last bit is 0 shift the res...

Страница 382: ...0001 Exclusive OR XOR 1001 0011 1111 1110 Shift 5 0100 1001 1111 1111 0 Shift 6 0010 0100 1111 1111 1 Generator polynomial 1010 0000 0000 0001 Exclusive OR XOR 1000 0100 1111 1110 Shift 7 0100 0010 01...

Страница 383: ...llowing shows a usage example of Non verified reception 1 byte STX Header Non verified reception variable number of characters Terminator Conversion variable Data needed by the user Set a Non verified...

Страница 384: ...the head module instructions for the C24 cannot be used Use the X Y signals 2 Restrictions on MC protocol communication The following shows the commands available when accessing the head module using...

Страница 385: ...App 56 App 56 APPENDIXES Appendix 6 2 System configuration example 1 System configuration The following is a system configuration for the program examples in this section...

Страница 386: ...tting of the intelligent device station head module When the C24 is connected to the head module dedicated instructions cannot be used To communicate with an external device set data to be sent to the...

Страница 387: ...nd the execution protocol No to the link register W of the CPU module to write them to the C24 buffer memory 3 Execute the protocol by receiving the protocol execution request Y3 YA 4 The data receive...

Страница 388: ...col Sending procedure 1 Write the send data to the link register W of the CPU module to write the send data to the C24 buffer memory 2 Issue a send request by receiving the send request Y0 Y7 3 After...

Страница 389: ...lts of execution of the nonprocedural or bidirectional protocol are transferred from the C24 buffer memory to the head module device and then to the link register W of the CPU module 2 When the data f...

Страница 390: ...elow For the network configuration setting refer to 2 in this section For the refresh parameters refer to 3 in this section Operation procedure Project window Parameter Network Parameter Network Param...

Страница 391: ...App 62 App 62 APPENDIXES 3 Refresh parameter setting In Refresh Parameter set the following network parameters...

Страница 392: ...edure Project window Parameter PLC Parameter CC Link IE Field Communication Head Parameter Setting Communication Head Setting Setting screen 2 Adding the C24 to the project To perform the various C24...

Страница 393: ...1 Setting for the C24 installed to the head module Configure the switch settings and predefined protocol settings of the C24 to the head module To use the program example in this section set as follo...

Страница 394: ...s_Control_Specification screen set 1 Prohibited in Echo back allow prohibit designation For details on the echo back allow prohibit refer to Section 6 3 5 Operation procedure Project window Intelligen...

Страница 395: ...tting Set the auto refresh to transfer the information stored in the C24 buffer memory to the specified device of the head module automatically Operation procedure Project window Intelligent Function...

Страница 396: ...Predefined Protocol Support Function 2 Predefined Protocol Support Function screen File New Setting screen Packet Name Element No Element Name Data Storage Area Specification 0601H RD Controller Stat...

Страница 397: ...ata link status of station No 1 Converts the execution command Number of protocol requests Number of protocol completions CH2 protocol execution result obtained CH2 protocol execution result Turns on...

Страница 398: ...Y signals 1 Setting of the C24 installed to the head module Perform the switch setting and communication protocol setting for the C24 to the head module To use the program example in this section set...

Страница 399: ...o transfer the information stored in the C24 buffer memory to the specified device in the head module automatically For details on the transmission receive area refer to Chapter 10 or 11 Operation pro...

Страница 400: ...tatus of host station SW00B0 0 Data link status of each station Station number 1 The data received in the C24 is transferred to the master station CPU module and stored in the following devices In the...

Страница 401: ...head module Perform the switch setting and auto refresh setting for the C24 on the head module To use the program example in this section set as follows a Switch setting Set switch settings such as tr...

Страница 402: ...o transfer the information stored in the C24 buffer memory to the specified device by the head module automatically For details on the transmission receive area refer to Chapter 10 or 11 Operation pro...

Страница 403: ...procedural protocol I O signals of the C24 Device Purpose Device Purpose X1000 CH1 Transmission completion Y1000 CH1 Transmission request X1001 CH1 Transmission error Link special relay SB link specia...

Страница 404: ...module the data is stored in the C24 device installed to the following head module Device Content W0 Send data count W1 to W1FF Send data The example in the previous page does not include a program fo...

Страница 405: ...put instruction to the End processing of the sequence scan at the completion of the Output instruction execution ms St Scan time Dle Data length of 1 byte at data transmission number of bits Cr Commun...

Страница 406: ...ss the Input instruction when receiving 100 bytes of data using the nonprocedural protocol with C24 Unit ms Scan time 10 ms 10 0 09 100 7 0 26 00 ms 2 Indicates the time from when the C24 receives dat...

Страница 407: ...n speed Transmission receive registered data count Others ONDEMAND 48 8 48 3 40 bytes Send in Format 3 OUTPUT 23 8 23 5 40 bytes PRR 24 3 23 9 19200 bps Data size 8 Stop bit 1 Parity none 40 bytes 8 b...

Страница 408: ...0001 0010 0011 0100 0101 NUL SOH STX ETX EOT ENQ DLE DC1 DC2 DC3 DC4 NAK SP 0 1 2 3 4 5 A B C D E P Q R S T U a b c d e p q r s t u 6 7 8 9 A 0110 0111 1000 1001 1010 ACK BEL BS HT LF SYN ETB CAN EM S...

Страница 409: ...T compatible personal computer to the programmable controller by following the wizard Some types of controls are set only by programs without using the wizard The wizard allows the user to perform the...

Страница 410: ...l ActEasy IF ACT control for utility setting type b Program example For each development software the program examples are described below 1 Visual BasicR NET 2003 2 Visual C R NET 2003 3 Visual Basic...

Страница 411: ...Val e As System EventArgs Handles Command3 Click Disconnection Dim rtn As Integer Disconnection rtn AxActEasyIF1 Close If rtn 0 Then MsgBox The disconnection was successful Else MsgBox Disconnection E...

Страница 412: ...to display the results for iNumber 0 iNumber 5 iNumber lpszarrData iNumber sData iNumber ToString szReadData String Join lpszarrData MessageBox Show String Format D0 D4 0 szReadData else MessageBox S...

Страница 413: ...nnection Error Hex rtn End If End Sub Private Sub Command2_Click Read Dim rtn As Long Dim idata 5 As Integer D0 D4 are read rtn ActEasyIF1 ReadDeviceBlock2 D0 5 idata 0 If rtn 0 Then MsgBox D0 D5 idat...

Страница 414: ...calStationNumber Connection lRet m_actEasyIf Open if lRet 0 MessageBox The connection was successful else szMessage Format Connection Error x lRet MessageBox szMessage Read void CVCDlg OnRead long lRe...

Страница 415: ...Disconnection void CVCDlg OnClose long lRet CString szMessage Disconnection lRet m_actEasyIf Close if lRet 0 MessageBox The disconnection was successful else szMessage Format Disconnection Error x lR...

Страница 416: ...tting data GX Works2 setting screen Data item name Setting value Remarks Interrupt Pointer Start No PLC Side Interrupt Pointer Count 2 fixed Input format Decimal Start I O No Input format Hexadecimal...

Страница 417: ...ns Disable Enable 50 300 600 1200 2400 4800 9600 14400 19200 28800 38400 57600 115200 Communication rate setting unit bps 230400 MELSOFT Connection Format 1 Format 2 Format 3 Format 4 MC protocol Form...

Страница 418: ...1 R1 bend radius near the terminal Cable outside diameter 4 2 R2 bend radius near the connector Cable outside diameter 4 3 r1 bend radius near the crimp on terminal Connectable without bending excessi...

Страница 419: ...l 10 3 Debug support function 13 1 Dedicated instructions 12 1 DR signal 6 3 DSR signal 6 3 DTR signal 6 3 E Echo back 6 19 ER signal 6 3 ERR LED 15 55 Error code list 15 19 Even odd parity 7 12 Execu...

Страница 420: ...11 4 Receive complete code 10 23 Receive data clear nonprocedural 10 17 bidirectional 11 14 Received data count 10 23 Receive data nonprocedural 10 8 bidirectional 11 6 Receiving methods nonprocedura...

Страница 421: ...dex 3 Troubleshooting 15 1 TXD signal 6 2 U User register frame specification 7 7 V Various control specification 7 3 W Writing to the flash ROM 7 23 1 1 1 system configuration 5 4 1 n system configur...

Страница 422: ...10 Appendix 7 to 11 September 2010 SH NA 080894ENG C Correction Sections 7 2 9 4 13 2 15 2 1 15 3 21 Appendixes 6 2 6 4 6 5 6 5 1 6 5 2 April 2011 SH NA 080894ENG D Correction Sections 6 2 to 6 3 2 9...

Страница 423: ...been avoided if functions or structures judged as necessary in the legal safety measures the user s device is subject to or as necessary by industry standards had been provided 4 Failure that could h...

Страница 424: ...ion in the United States and other countries Ethernet is a trademark of Xerox Corporation Other company names and product names used in this document are trademarks or registered trademarks of respect...

Страница 425: ......

Страница 426: ......

Страница 427: ......

Страница 428: ...Str GR 18542 Piraeus Phone 30 211 1206 900 Fax 30 211 1206 999 HUNGARY MELTRADE Kft Fert utca 14 HU 1107 Budapest Phone 36 0 1 431 9726 Fax 36 0 1 431 9727 LATVIA Beijer Electronics SIA Ritausmas iela...

Отзывы: