Home

USER'S MANUAL - Fuji Electric

image

Contents

1. Function code F_CODE_O Coil address high Beginning address ADD_I gt Coil address low FFh ON OOh OFF high Received data R_DAT s from unit ID to the end of data Slave station number STN_NO_I Unit ID slave station number Function code F_CODE_ gt Function code O5 h Coil address high Beginning address ADD_ gt Coil address low FFRh ON 00h OFF high Sent data S_DAT gt OOh low X 1 Data length LEN_h and number of bytes LEN2_I are not used in function 05 Set each terminal to WORD 16 0000 X 2 The force ON command sets the beginning word of sent data to WORD 16 FFOO The force OFF command sets it to WORD 16 0000 2 8 Chapter 2 Specifications da Write holding register 1 word code 06 h Write data in the register 1 word specified by the slave device The formats of request and response messages are as follows Master FB input terminal Request message Response message Master FB output terminal Communication ID high Communication ID high Communication ID TI_ gt Communication ID TI_O Communication ID low Communication ID low Unused gt Unused Input O h inside the master FB SI computed inside master FB gt Used internally by master FB Unit ID slave station number Slave station number STN_NO_O Function code O6 h Function code F_CODE_O Register address high Beginning address ADD_l gt Register address low
2. The number of transmission requests The number of times transmission normally ends The number of times receiving normally M_OPEN status M_SEND status M_RECEIVE status The number of open errors The number of transmission errors The number of receiving errors Reserve FB STATUS output terminal information B STATUS output terminal informa B STATUS output terminal information on 2 32 _C_emods B ERROR output terminal B ERROR output terminal or errors in specified Number of receiving errors Counts rise of MLRECEIVE FB ERROR output terminal or errors in receiving data Fuji Electric Co Ltd Gate City Ohsaki East Tower 11 2 Osaki 1 chome Shinagawa ku Tokyo 141 0032 Japan E mail micrex sx fujielectric co jp URL _ http www fujielectric com Materials covered in this document are subject to revision due to the modification of the product Issued as FE consolidated edition June 2011
3. X In addition to the above listed manuals there are many other MICREX SX related manuals as well as technical information available at our company Web site http www fujielectric co jp Note 1 Reproducing or copying part or all of the content of this manual without permission is prohibited 2 Please note that the contents of this manual including specifications are subject to change for improvement purposes without prior notice 3 We have taken every possible measure to prepare this manual However if you have questions or notice errors kindly contact us at the sales office listed at the end of the manual When contacting us please provide the manual number listed on the front cover Safety Precautions Before using this product please read the Safety Precautions carefully for proper use The levels of safety precautions are classified into Warning and Caution as described below A Warning Improper handling may result in death or serious injury A Caution Improper handling may result in medium to minor injury or physical damage Note that items listed under A Caution may result in serious consequences in some situations Be sure to follow these precautions as each of them is important A Warning Do not touch terminals or other live parts while the power is on There is a risk of electric shock Be sure to turn the power of
4. Name of input terminal y _C_emodm Name of output terminal _C_emodm BOOL OPEN BOOL S_REQ UDINT IP_ADD INT STN_NO_1I WORD F_CODE_ WORD ADD_1 WORD LEN_ WORD LEN2_l WORD TIL_I 2 3 BOOL OK WORD O_STS BOOL R_END BOOL R_ERR WORD R_STS BOOL S_END BOOL S_ERR WORD S_STS INT STN_NO_O WORD F_CODE_O WORD ADD_O WORD LEN_O WORD LEN2_O WORD TI_O Communication OK Open status Receiving completed Receiving error Receive status Transmission completed Transmission error Transmission status Slave station number Function code Beginning address Data length Number of bytes Communication ID Sent data Received data Communication parameter Send receive buffer RAS information Chapter 2 Specifications 4 Description of each terminal _C_emodm ON Opens channel with MODBUS slave device When Open OPEN BOOL IN communication becomes available communication OK turns ON OFF Ends communication Communication OK turns OFF Transmission request S_REQ BOOL IN Starts sending data When transmission is completed it must be turned OFF using application Slave IP address IP_ADD UDINT IN Starts sending data When transmission is completed it must be turned OFF using application En Statuon Mur SIN_NO
5. gt received data R_DAT Sent data S_DAT gt Write data low X 1 Requested write data from the master station is output to received data R_DAT X 2 Data length LEN_O and number of bytes LEN2_O are not used in function O6 h Therefore 0 is output X 3After write processing is completed set write data from the master R_DAT in sent data S_DAT X 4Data length LEN_D and number of bytes LEN2_l are not used Set them to 0 2 24 Chapter 2 Specifications Seeds Force ON OFF multiple bits code OF h Request message Slave FB output terminal Slave FB input terminal Response message from the slave Communication ID high Communication ID high Communication ID TI_O Communication ID low Communication ID low Unused Data automatically set by slave FB Message length high Message length high Used internally by slave FB Message length low Message length low Slave station number r Unit ID slave station number sTN_NO_OFB Unit ID slave station number Function code Function code OF h E_CODE O Function code F_CODE_l gt Beginning address high TES Beginning S gt address ADDO Set cala based Beginning address ADD_l Beginning address low on received data using application Number of write bits high Data length LEN_O Data lengt
6. Communication Pro edures s es s oe AAA AAA 2 14 9 93 RAS information ts ao e e e 2 16 2 3 MODBUS Ethernet slave FB C emods 0 50 Sra eee woe 2 17 2 3 1 _C_emods specifications c tt error rre D4 9 1 Function OBS tt tt 2 17 2 FB memory size lt oo eR Te esse ms as RR 9 17 SIB forme sr o a a AR A ee 2 18 4 Description of each terminal 2 19 po Message format by function Godes s e es ses eet eee Hig ee ews 2 21 6 Communication Dar Me tes 2 28 2 3 2 COMMUPICAIIGN DEOCCIUES w e pos AA AAA AAA BO 2 30 2 3 3 RAS information O O E A Ae A A Oa 2 32 Chapter 1 Outline 1 1 Type of MODBUS Ethernet FB MODBUS Ethernet FB is a function block to establish MODBUS Ethernet TCP IP communication using the Ethernet communication functions of the CPU module with built in SX series Ethernet SPH2000 3000 series product with E at the end or the Ethernet interface module NP1L ET1 There are two types of FB as shown below _C_emodm For MODBUS Ethernet master station SX Programmer Expert D300win V3 5 3 or later _C_emods For MODBUS Ethernet slave station Note The standard loader and D300winV2 cannot be used X The above FBs are included in the D300win product CD They can also be downloaded from the technical information page on our Web site 1 1 Chapter 1 Outline 1 2 Connection configuration 1 2 1 SX series as master station MICREX SX
7. Data length LEN_I gt Data length low Slave station number STN_NO_O Function code F_CODE_O Number of bytes LEN2_0 Received data R_DAT Data read high Data read low X 1For data length LEN_D specify the number of words in the read register 1 to 125 words X 2 The number of bytes LEN2_I is not used in function 03 04 Set LEN2_ terminal to WORD 16 0000 Similarly set all data of variables connected to sent data S_DAT to 0 X 3The number of bytes read is stored in the high byte of data length LEN_O X 4Read data is received in the order of high bytes and low bytes as shown below Therefore data in word units can be accessed as is in word units Received data R_DAT gt High byte Low byte High byte Low byte High byte Low byte 2 7 Chapter 2 Specifications _C emodm Q Force ON OFF 1 bit code 05 h Force the bit coil specified by the slave station to be ON OFF The formats of request and response messages are as follows Master FB input terminal Request message Response message Master FB output terminal Communication ID high Communication ID high Communication ID TI_I gt Communication ID TI_O Communication ID low Communication ID low Unused gt Unused Input O h inside the master FB SI computed inside master FB gt Used internally by master FB Unit ID slave station number Slave station number STN_NO_O Function code 05 h
8. R_DAT _C_RCV_DAT_EMDM END_VAR Note Reserve is internally used by this FB Do not attempt S_DAT_ 124 Data250 Data249 to access it S_DAT_ 125 Reserve Reserve 2 5 Chapter 2 Specifications _C emodm 5 Message format by function code Read coil code 01 h Read input bit code 02 h Read the coil input bit status of the slave device The formats of request and response messages are as follows Request message Communication ID high Communication ID TI_I gt Communication ID low Unused Response message Communication ID high Communication ID TI_O Communication ID low Unused Master FB input terminal Master FB output terminal SI computed inside master FB gt Used internally by master FB Unit ID slave station number Slave station number STN_NO_O Function code 01 h or 02 h Function code F_CODE_0 Number of bytes read Number of bytes LEN2_0 Data read high Data read low Received data R_DAT Data read high Data read low X 1For data length LEN_D specify the number of bit points read 1 to 2000 points X 2 The number of bytes LEN2_I is not used in function 01 02 Set LEN2_ terminal to WORD 16 0000 Similarly set all data of variables connected to sent data S_DAT to 0 X 3The number of bytes read is stored in the high byte of data length LEN_0 X 4Read data are received with high bytes and low bytes in reverse as shown below
9. application If the number of read data points is not multiples of 8 set excess bits to O OFF X 4For the number of bytes LEN2_ specify the number of bytes 1 to 250 bytes in sent data S_DAT X 5 Beginning address ADD_ and data length LEN_l are not used Set them to 0 2 21 Chapter 2 Specifications 6 ened Read holding register code O3 h Read input register code 04 h Request message Slave FB output terminal Slave FB input terminal Response message from the slave Communication ID high Communication ID high gt Communication ID TI_O Communication ID low Communication ID low Unused Data automatically set by slave FB Message length high Message length high Used internally by slave FB Message length low Message length low gt Sl i 3 Unit ID slave station number dl Unit ID slave station number Function code O3 h or 04 h 7 ecu or Function code F_CODE_l gt Beginning address high Number of bytes LEN2_1 gt Beginning address ADD_O Beginning address low Data length high gt Data length Set data based on LEN_O received data using SIS DANS Data length low i application 1 For data length LEN_I the number of read register words 1 to 125 words is output X 2 The number of bytes LEN2_O and received data R_DAT are not used in fu
10. es from unit ID to the end of data Slave station number STN_NO_I gt Unit ID slave station number Function code F_CODE_l gt Function code 01 h or O2 h Beginning address high Beginning address ADD_I gt Beginning address low Data length high Data length LEN_ gt Data length low Received data R_DAT This is an offset address using the specified beginning address as a reference 7 6 5 4 3 2 1 0 15 14 13 12 11 10 9 8 23 22 21 20 19 18 17 16 31 30 29 28 27 26 25 24 2 6 Chapter 2 Specifications da Read holding register code 03 h Read input register code 04 h Read the input bit status of the slave device The formats of request and response messages are as follows Request message Communication ID high Communication ID TI_l gt Communication ID low Unused Input O h inside the master FB Response message Communication ID high Communication ID TI_O Communication ID low Master FB input terminal Master FB output terminal Unused SI computed inside master FB gt Used internally by master FB der of bytes from unit ID to the end of data Slave station number STN_NO_I gt Unit ID slave station number Function code F_CODE_I gt Function code 03 h or04 h Beginning address high Beginning address ADD_I gt Beginning address low Data length high
11. facilities where the product failure could potentially threaten life or cause serious damage be sure to install a safety device For external power supply DC24V for example to be connected to DC I O use a power source that is well insulated from the AC power source Use of EN60950 compliant power supply is recommended Doing otherwise may result in accident or failure Revision history X The manual number is printed in the lower right hand corner of the front cover of this manual April 2011 FH321 Initial version printed Table of contents Introduction Safety precautions Revision history Table of contents Chapter 1 Outline 1 1 Type of MODBUS Ethernet FB ee 1 1 1 2 Connection configuration ss ss ss e tt ee es 1 2 1 2 1 SA SONGS as MESter silos e A A ATA IAEA 1 2 1 2 2 SX series as slave Station 1 2 Chapter 2 Specifications 2 1 Transmission specifications 4 s ess 88 Oe oe AAA 2 1 2 1 1 MODBUS Ethernet TCP IP specifications S848 A A A A 2 1 2 2 MODBUS Ethernet master FB C emodm gt 2 lt s m lt 4 2 2 2 2 1 _C_emodm specifications rr 2 2 1 Function codes a a A E a o g 2 2 2 FB memory size o o DD 3 FB form e e 2 3 4 Description of each terminal 2 4 SMessace format Dy TUNCHON GOCE Y Fa sw w ay RR A eR MO NN 2 6 6 Communication DAA Meter 2 13 2 2 2
12. h F_CODE O Function code F_CODE_I gt Beginning address high Beginning address ADD_0 Set data based on Beginning address ADD_l gt Beginning address low T received data using application Number of write bits high Dating Data length LEN_I gt Number of write bits low EN O Number of bytes Number of bytes LEN2_0 Write data high gt Received data R_DAT Write data low Xx 1 Output to data length LEN_O is the number of write words requested by the master station 1 to 123 words Xx 20Output to the number of bytes LEN2_O is the number of write data bytes from the master station 1 to 246 bytes X 3Output to received data R_DAT is write data requested by the master station X 4After specified device write processing is completed set the number of write words requested 1 to 123 words in data length LEN_I X 5Number of bytes LEN2_l and sent data S_DAT are not used Therefore set them to 0 2 26 Chapter 2 Specifications seeds Error response format The error response format is as follows This applies to all functions Slave FB input terminal Error response message Communication ID high Set the value received from the master inside slave FB gt Communication ID low Unused gt Input O h inside slave FB gt Compute inside slave FB gt Message length high Number of bytes from unit ID to end of data gt M
13. 2 2 1 6 _TYP11MDM _C_WORK_ F eos Send receive b ter S_R_BUF IN_OUT Memory internally used by this FB Do not access this in TYP11EMDM applications i _C_work RAS information RAS IN_OUT Stores operation status of this FB _TYPE11MD Commanication OK OK BOOL OUT Turns ON when channel opening with MODBUS slave device is completed normally Open status O_STS WORD OUT 2 digit hexadecimal code to indicate open result Receiving completed R_END BOOL OUT Turns ON when data receiving from MODBUS slave device is completed normally ae Turns ON when an error occurs while receiving data from Receiving error R_ERR BOOL OUT MODBUS slave device Receive status R_STS WORD OUT Code to indicate receiving result Turns ON when sending of data to MODBUS slave device is Transmission completed S_END BOOL OUT E completed normally T N wh i f MODB i i Transmission erroi S_ERR BOOL OUT urns ON when sending of data to MODBUS slave device is abnormally ended Transmission status S_STS BOOL OUT Code to indicate transmission result 2 4 Chapter 2 Specifications _C_emodm Slave station number Response STN_NO_O INT OUT Berig ihe number OF INE responding slave Fun tion Gods Response F_CODE_O WORD Qul In response to the request from this FB values Beginning address Response ADD_O WORD OUT of function code beginning address data length and number of bytes in the response Data length Response LE
14. FS e Front runners MICREX SX SERIES SPH USER S MANUAL MODBUS Ethernet TCP IP Communication FB FEH321 Introduction Thank you very much for purchasins Fuji Programmable Controller This user s manual describes the specifications and handling of standard expansion FB used for MODBUS Ethernet data communication between the MICREX SX series Ethernet interface module NP1L ET1 or a CPU with built in SPH2000 3000 series Ethernet and external devices Please read this user s manual carefully for correct use of the product Please also read the re lated manuals listed in the table below MICREX SX Series SPH User s Manual Describes the memory language system definitions and other Command Edition nee contents of the MICREX SX series MICREX SX Series SPH User s Manual EEHOO Describes the system configuration hardware specifications of Hardware Edition each module and handling of the MICREX SX series MICREX SX Series SPH User s Manual EEHOSO Describes the specifications and handling of the Ethernet Ethernet Interface Module communication modules MICREX SX Series SPH User s Manual EO Describes the specifications and handling of Ethernet SPH2000 3000 Ethernet Communication Edition communication for CPU modules with built in Ethernet MICREX SX Series User s Manual D300winV3 lt Reference Edition gt FEH257 Describes D300winV3 menu and icons as well as all operation methods
15. L R_END BOOL R_ERR WORD R_STS BOOL S_END BOOL S_ERR WORD S_STS INT STN_NO_O WORD F_CODE_O WORD ADD_O WORD LEN_O WORD LEN2_O WORD TI_O Communication OK Open status Receiving completed Receiving error Receive status Transmission completed Transmission error Transmission status Slave station number Function code Beginning address Data length Number of bytes Communication ID Sent data Received data Communication parameter Send receive buffer RAS information Chapter 2 Specifications 4 Description of each FB terminal Open OPEN BOOL IN ON Opens channel with MODBUS master device When communication becomes available communication OK turns ON OFF Ends communication Communication OK turns OFF Transmission request S_REQ BOOL IN Starts sending data It must be turned OFF by application when transmission is ended Master IP address IP_ADD UDINT IN Specify the IP address of transmission destination master station number Example In the case of 192 168 0 1 specify UIDNT 16 COA80001 Slave station number Query SIN_NO_l INT IN Not used for this FB Set INT 0 Function code Query F_CODE WORD IN Specify MODBUS function to be used Set the code to low byte Example In the case of function 01h read coil WORD 16 0010 Beginning address Query ADD_l WORD IN Speci
16. Maximum TCP end timer value O to 600 in units of 0 1 seconds O 1 second O 1 second Response monitor timer value O to 300 in units of 0 1 seconds 300 30 seconds 300 30 seconds Server FTP command monitor timer value loader command monitor timer value O to 3000 in units of 0 1 seconds 3000 300 seconds 3000 300 seconds Client FTP data connection monitor timer value in units of 0 1 seconds Note 3 30 30 Detail setting Own port reference number O to 65280 Note 2 Communicating device s port reference number O to 65280 256 O Note 5 Note 1 Set the same value as the slave response monitor timer specified for the communication parameter Note 2 For master side actual port number specify 1 if not specified by the communicating device or a port number 1 to 65535 not used in the connected network environment Therefore specify own port reference number according to the actual port number to be set Note 3 This item is set for NP1L ET1 only The Ethernet parameters of CPU with built in Ethernet do not include this item Note 4 This item is set for the Ethernet of CPU with built in Ethernet only NP1L ET1 does not include this item Note 5 The slave side actual port number is fixed at 502 inside the master FB MODBUS Ethernet specifications Therefore specify 0 for the communicating device port reference number Communication parameter settings in FB Items to be set in array variable
17. N_O WORD QUT data from the slave device are output They are Number of bytes Response LEN2_O WORD OUT output in the same formats as those set for input Communication ID Response TI_O WORD OUT Quen lt Definition of array gt The array data in this FB are defined as follows TYPE _C_PAR_TYP11EMDM ARRAY 0 9 OF UINT xparameter areax _C_SND_TYP11EMDM _C_RCV_TYP11EMDM ARRAY 0 131 OF WORD ARRAY 0 131 OF WORD _C_SND_DAT_EMDM ARRAY 0 125 OF WORD _C_RCV_DAT_EMDM ARRAY 0 125 OF WORD _C_WORK_TYPE11EMDM sent data area xsend buffer areax xreceive buffer areax Cxreceived data areax STRUCT SND_BUF gt C_SND_TYP11EMDM Cxsend buffer RCV_BUF gt C_RCV_TYP11EMDM Cxreceive buffer END_STRUCT _CRAS_TYP11EMDM ARRAY 0 9 OF INT xRAS area END_TYPE lt Format of variable connected to sent data terminal S_DAT gt Arrange array variables to be connected to S_DAT as follows High Low lt Assuming that the variable name is S_DAT gt S_DAT_ 0 Data2 Data1 VAR S_DAT_ 1 Data4 Data3 S_DAT _C_SND_DAT_EMDM END_VAR S_DAT_ 124 Data250 Data249 S_DAT_ 125 Reserve Reserve lt Format of variable to be connected to received data terminal R_DAT gt Data to be connected to R_DAT are arranged as follows lt Assuming that the variable name is R_DAT gt High Low S_DAT_ 0 Data2 Datat ven S_DAT_ 1 Data4 Data3
18. Number of bytes from unit ID to the end of data Slave station number STN_NO_I gt Unit ID slave station number Function code F_CODE_I gt Function code 06 h Register address high Beginning address ADD_I gt Register address low Write data high Sent data S_DAT gt Write data low xX 1 Data length LEN_D and number of bytes LEN2_ are not used in function 06 Set each terminal to WORD 16 0000 Xx 2For sent data S_DAT set data to be written in the beginning word Write data high Received data R_DAT Write data low 2 9 Chapter 2 Specifications _C emodm Force ON OFF multiple bits code OF h Force the bit coil specified by the slave station to be ON OFF The formats of request and response mes sages are as follows Master FB input terminal Request message Response message Master FB output terminal Communication ID high Communication ID high Communication ID TI_I gt Communication ID TI_O Communication ID low Communication ID low Unused Unused Input O h inside the master FB SI computed inside master FB gt Used internally by master FB ar of bytes from unit ID to the end of data Slave station number STN_NO_1 gt Unit ID slave station number Unit ID slave station number Slave station number STN_NO_0 Function code F_CODE_l gt Function code OF h Function code OF h Function code F_CODE_O Beginning address high Beginning
19. RAS 4 RAS RAS 5 RAS RAS 6 RAS RAS 7 RAS RAS 8 RAS RAS 9 Number of transmission requests Counts rise of S_REQ input terminal ally ends Counts rise of M_SEND DONE output terminal Number of times receiving normally ends Counts rise of M_RECEIVE NDR output terminal PEN FB STATUS output terminal information M_SEND status Stores M_SEND FB STATUS output terminal information M_RECEIVE status Stores M_RECEIVE FB STATUS output terminal information PEN request is received counts rise of M_OPEN n specified communication parameters transmission errors Counts r receiving errors Counts rise of M_RECEIVE times no slave response is received Counts slave response monitor timer timeout The number of transmission requests The number of times transmission normally ends The number of times receiving normally ends M_OPEN status M_SEND status M_RECEIVE status The number of open errors The number of transmission errors The number of receiving errors The number of times no slave response is received for the master only ise of M_SEND FB ERROR output terminal or errors in specified _C_emodm B ERROR output terminal B ERROR output terminal or errors in receiving data Chapter 2 Specifications 2 3 MODBUS Ethernet slave FB _C emods 2 3 1 _C emods specifications _C_emods is an FB for MICREX SX as a slave to establish data commun
20. _I INT IN Not used for this FB Set INT 0 for the terminal Specify MODBUS function to be used Set the code to low Function code Query F_CODE WORD IN byte Example In the case of function 01h read coil WORD 16 0010 Specify the beginning address of data to be read or written Set data in the following format Beginning address Query ADD_ WORD IN 15 87 0 High Low Specify the size number of bits or words of data to be read or written This may not be used depending on the function used In that case set 0000h Set data in the following format Data length Query LEN_I WORD IN 15 87 0 High Low Specify the number of data bytes to be written when writing multiple bits OF or multiple words 10 In the case of other functions set WORD 16 0000 Set data in the following Number of bytes Query LEN2_l WORD IN format 15 87 0 High Low Used to match response data from MODBUS slave devices Generally increment by 1 for each request in the range of O Communication ID Query TII WORD IN to 65535 0 FFFF If it is not used set WORD 16 0000 If it is used adjust it according to the specification of the slave device used _C_SND Stores sent data In the case of data readout and diagnosis set Sent data S_DAT DATIEMOM IN_OUT all data to 0 _C_RCV_ Received data R_DAT IN_OUT Stores received data DAT_EMDM ae _C_PAR ad F Communication parameter PARA IN_OUT Stores parameters for initialization For details refer to
21. address high Beginning address ADD_I gt Beginning address ADD_l gt Beginning address low Beginning address low Number of write bits high Number of write bits high Data length LEN_I gt 3 Number of write bits low Number of write bits low Number of bytes Number of write data high Sent data S_DAT gt Number of write data low X 1 For data length LEN_D specify the number of bit points to be written 1 to 1968 points X 2For number of bytes LEN2_I specify the number of bytes 1 to 246 bytes of edited sent data S_DAT 3 The number of bit points to be written specified for data length LEN_I should match the number of bytes specified for LEN2_l Example If the number of bit points to be written is 1 to 8 points set 1 byte If it is 9 to 16 points set 2 bytes X 4Set write data with high bytes and low bytes in reverse as follows Data length LEN_l This is an offset address using the specified beginning address as a reference Sent data S_DAT 7 6 5 4 3 2 1 0 15 14 13 12 11 10 9 8 23 22 21 20 19 18 17 16 31 30 29 28 27 26 25 24 2 10 Chapter 2 Specifications da Write holding registers multiple words code 10 h Write data in the first register specified by the slave device and continuous registers that follow The formats of request and respons
22. application ON by application ar y app Transmission request S_REQ 1 scan Transmission processing i Transmission completed S_END When request data from the master station is received REND turns ON during 1 scan When a receiving error occurs RLEND and R_ERR turn ON during 1 scan and an error code is output to the receive status Analyze received data by application and execute requested processing Then set data to be sent and turn transmission request ON by application 3 When transmission is completed normally S_END turns ON during 1 scan and waits for the next request data from the master station When transmission ends abnormally S_ERR turns ON during 1 scan and an error code is output to the transmission status lt Transmission status gt 00 Completed normally 10 Unsupported function An unsupported function code was set 11 Error in specified slave station number A number other than 1 to 255 was set Function code OF h 1 to 1968 points ia Error inspected data length Function code 10 h 1 to 123 words 13 Error in specified number of bytes Function code 01 to 04 h 1 to 250 bytes A Message transmission error no response received from the other device 91 Transmission failed for example lt Receive status gt 00 Completed normally 10 Unsupported function An unsupported function code was set 11 Error in specified slave station numb
23. ce and response messages are as follows Based on request messages output to the slave FB output terminal set data to the slave FB input terminal using the application Slave FB input terminal Response message from the slave Request message from the master Slave FB output terminal 5 e A Communication ID high Communication ID high e E uni l w gt Communication ID TI_O Communication ID low Data automatically pee set by slave FB Message length high Message length high gt Used internally by slave FB Message length low Message length low Unit ID slave station number Slave station number Unit ID slave station number STN_NO_OFB Pineda eae E CODEN Function code Function code 01 h or 02 h cope o Number 0 bytes END y Beginning address high gt Beginning address ADD_O Beginning address low Set data based on Data length high Data length received data using application Sent data S_DAT gt LEN_O Data length low 1 For data length LEN_O the number of bit points read 1 to 2000 points from the master station is output 2 The number of bytes LEN2_O and received data R_DAT are not used in function 01 02 Therefore 0 is output Xx 3For S_DAT set data that corresponds to the number of read bytes requested by the master using the
24. ceived data R_DA Dare WORD 16 FFOO if the master station request is force ON and WORD 16 0000 if it is force OFF Xx 2 Data length LEN_O and number of bytes LEN2_O are not used in function O5 h Therefore 0 is output X 3After specified device ON O processing is completed set sent data S_DAT to WORD H16 FFOO in the case of force ON and WORD 16 0000 in the case of force OFF x 4Data length LEN_h and n 2 23 umber of bytes LEN2_ are not used Set them to 0 Chapter 2 Specifications Write holding register 1 word code 06 h Request message Slave FB output terminal Slave FB input terminal Response message from the slave Communication ID high Communication ID high Communication ID TI_O Communication ID low Communication ID low Unused Data automatically set by slave FB Message length high Message length high Used internally by slave FB Message length low Message length low Slave station number Unit ID slave station number STN_NO_OFB Unit ID slave station number Function code Function code O6 h F_CODE_0 Function code F_CODE _I gt Beginning address high Beginning address ADD_O Set data based on Beginning address ADD_I gt received data using Beginning address low x application Write data high
25. curs while receiving data from MODBUS master device Receive status R_STS WORD OUT Code to indicate receiving result 2 19 Chapter 2 Specifications 6 ened o Turns ON when data transmission to MODBUS slave device is Transmission completed S_END BOOL OUT completed normally Turns ON when data transmission to MODBUS slave device ends Transmission error S_ERR BOOL OUT abnormally Transmission status S_STS BOOL OUT Code to indicate transmission result Master station number Response STN_NO_O INT OUT Outputs the number of the responding master station Function code Response F_CODE_O WORD OUT Beginning address Response ADD O WORD OUT In eee to the ices from this pea of WAEN code beginning address data length and number of bytes Data length Response LEN_O WORD OUT in the response data from the master device are output They are N f R LEN2 WORD T net Of bytes Hesponse 9 2 a output in the same formats as those set for input Query Communication ID Response TI_O WORD OUT lt Definition of array gt The array data in this FB are defined as follows TYPE _C_PAR_TYP11EMDS _C_SND_TYP11EMDS _C_RCV_TYP11EMDS _C_SND_DAT_EMDS _C_RCV_DAT_EMDS _C_WORK_TYPE11EMDS STRUCT SND_BUF RCV_BUF END_STRUCT _C_RAS_TYP11EMDS END_TYPE ARRAY ARRAY ARRAY ARRAY ARRAY 0 9 OF UINT parameter area 0 131 OF WORD Grsend buffe
26. depending on function code Function code OF 10 h 1 to 246 bytes 13 Error in specified number of bytes Message transmission error no response received from the other 91 Transmission failed 3 device for example lt Receive status gt 00 Completed normally 20 Renew ID mismatch The requested renewal ID and the responding renewal ID do not match 21 F une PEON GOAS The requested function code and the responding function code do not match mismatch 22 ene Born anit 16 The requested station number and the responding station number do not match 23 Abnormal response Data larger than the receive buffer was received eee No response was received from the slave within the time set in the communication 24 Receiving timeout parameter 91 Receiving failed ae iE il message the communication port of the other device is not open for 2 15 Chapter 2 Specifications 2 2 3 RAS information The RAS information area is used to check the operation status of the FB When using RAS information in application variables are declared as follows lt Variable declaration example gt VAR RAS _C_RAS_TYPE11EMDM END_VAR RAS RAS O RAS RAS 1 RAS RAS 2 e 904905890609 ore tran M_OPEN status Stores M_O Number o rrors umber o smissi Number o Number o Number of times transmission norm open errors When O on data RAS RAS 3 RAS
27. e messages are as follows Master FB input terminal Request message Response message Master FB output terminal Communication ID high Communication ID high Communication ID TI_I gt Communication ID TI_O Communication ID low Communication ID low Unused Unused Input O h inside the master FB SI computed inside master FB Slave station number STN_NO_I Unit ID slave station number Function code F_CODE_l gt Function code 10 h Beginning address high Beginning address ADD_ gt Beginning address low Number of write words high Data length LEN_I gt Used internally by master FB Number of bytes from unit ID to the end of data Unit ID slave station number Slave station number STN_NO_0 Function code OF h Function code F_CODE_O Beginning address high Beginning address ADD_I gt Beginning address low Number of write words high Data length LEN_1 Number of write words low Number of write words low Number of bytes LEN2_I gt Number of bytes Number of write data high Sent data S_DAT gt Number of write data low 1 For data length LEN_D specify the number of words to be written 1 to 123 words X 2For number of bytes LEN2_l set the number of bytes 1 to 246 bytes in sent data S_DAT X 3 The number of words to be written specified for data length LEN_I should match the number of bytes specified in LEN2_l X 4Set write data in the order of hig
28. elow Data set by application Sent data S_DAT ON by application __ OFF by application Transmission request S_REQ o Prec R 1 scan Transmission processing Transmission completed S_END 1 scan Receiving completed R_END Receiving completed R_END X Received data Set data to be sent and turn ON transmission request by application The FB detects rising and executes transmission When transmission is completed normally S_END turns ON during 1 scan and waits for response data from the slave device When transmission ends abnormally S_ERR turns ON during 1 scan and an error code is output to the transmission status S_STS When response data from the slave station is received normally R_END turns ON during 1 scan and received data are output to R_DAT and output terminal ADD_O for example When a receiving error occurs R_LEND and R_ERR turn ON during 1 scan and an error code is output to the receive status lt Transmission status gt 00 Completed normally 10 Unsupported function An unsupported function code was set 11 Error in specified slave station number A number other than 1 to 255 was set The setting range varies depending on function code Function code 01 02 h 1 to 2000 points 12 Error in specified data length Function code 03 04 h 1 to 125 words Function code OF h 1 to 1968 points Function code 10 h 1 to 123 words The setting range varies
29. er A number other than 1 to 255 was set Function code 01 02 h 1 to 2000 points x Function code 03 04 h 1 to 125 words 12 Error in specified data length i Function code OF h 1 to 1968 points Function code 10 h 1 to 123 words 13 Error in specified number of bytes Function code OF 10 h 1 to 246 bytes Error in receiving message the communication port of the other device is 91 Receiving failed not open for example Chapter 2 Specifications 2 3 3 RAS information The RAS information area is used to check the operation status of the FB When using RAS information in application variables are declared as follows lt Variable declaration example gt VAR RAS _C_RAS_TYPE11EMDS END_VAR e 04p E AEREA transmission data Number of times transmission norm Number of times receiving normal M_OPEN status Stores M_OPEN RAS RAS 0 RAS RAS 1 RAS RAS 2 RAS RAS 3 RAS RAS 4 RAS RAS 5 RAS RAS 6 RAS RAS 7 RAS RAS 8 RAS RAS 9 Number of transmission requests Counts rise of S_REQ input terminal ally ends Counts rise of M_SEND DONE output terminal y ends Counts rise of MLRECEIVE NDR output terminal M_SEND status Stores M_SEND M_RECEIVE status Stores M_RECEIVE Number of open errors When OPEN request is received counts rise of M_OPEN or errors in specified communication parameters Number of transmission errors Counts rise of M_SEND
30. essage length low Set the value received from the master inside slave FB gt Unit ID slave station number Function code F_CODE_ gt Function code 80 h Sent data S_DAT gt Error code X 1 In function code F_CODE_O set the value of the function code requested by the master plus 80 h Example If requested function code is 01 h set 81 h in F_LCODE_I lt List of error codes gt 01h Error in function code 02h Error in specified address 03h Error in specified number of read write data 2 27 Chapter 2 Specifications 6 Communication parameters _C_emods There are two types of MODBUS Ethernet communication parameters parameters set in module and param eters set in this FB Module parameters The parameters shown in the table below are set in the D300win system definition IP address 192 168 0 1 Optional IP address Subnet mask 255 255 255 0 Optional Gateway Default gateway None None TCP send receive timeout value O to 300 in units of 0 1 seconds 300 300 Note 1 Maximum TCP end timer value O to 600 in units of 0 1 seconds O 1 second O 1 second Response monitor timer value O to 300 in units of 0 1 seconds 300 30 seconds 300 30 seconds Server FTP command monitor timer value loader command monitor timer value O to 3000 in units of 0 1 seconds 3000 300 seconds 3000 300 seconds Client FTP data connection mo
31. f when conducting installation removal wiring and maintenance inspection work There is a risk of electric shock malfunction or failure if such work is performed while the power is on Set up emergency stop circuits and interlock circuits outside the PLC There is a risk of mechanical damage or accident as a result of PLC failure Do not connect or charge reversely disassemble deform by pressure throw into fire or short circuit the batteries There is a risk of explosion or fire If you notice battery deformation fluid leakages or any other abnormalities do not use them There is a risk of explosion or fire Safety Precautions A Caution Do not use a damaged or deformed product when it has been removed from the package Doing so may result in fire malfunction or failure Do not shock the product by dropping or overturning it Doing so may result in product damage or failure Install the product in accordance with the operating instructions and the manual Improper installation may result in falling of the product malfunction or failure Use the product at the rated voltage and current specified in the operating instructions and the manual Use outside the specification may result in fire malfunction or failure Use store the product under the environment specified in the operating instructions and the manual Use storage under environments of high temperature high humidity condensatio
32. fy the beginning address of data to be read or written Set data in the following format 15 87 0 Low High Data length Query LEN_ I WORD IN Specify the size number of bits or words of data to be read or written This may not be used depending on the function used In that case set 0000h Set data in the following format 15 87 0 Low High Number of bytes Query LEN2_l WORD IN Specify the number of data bytes to be written when writing multiple bits OF or multiple words 10 In the case of other functions set WORD 16 0000 Set data in the following format 15 87 0 Low High Sent data S_DAT _C_SND IN_OUT Stores sent data In the case of data readout and diagnosis set _DAT_EMDS all data to O Received data R_DAT _C_RCV IN_OUT Stores received data _DAT_EMDS Communication parameter PARA _C_PAR IN_OUT Stores parameter for initialization For details refer to 2 3 1 6 _TYP11MDS Send receive buffer S_R_BUF _C_WORK___ IN_OUT Memory internally used by this FB Do not access this in TYP11EMDS applications RAS information RAS _C_work IN_OUT Stores operation status of this FB _TYPE11MS Communication OK OK BOOL OUT Turns ON when channel opening with MODBUS master device is completed normally Open status O_STS WORD OUT 2 digit hexadecimal code to indicate open result Receiving completed R_END BOOL OUT Turns ON when data receiving from MODBUS master device is completed normally Receiving error R_ERR BOOL OUT Turns ON when an error oc
33. h LEN_I gt Number of write bits low Number of bytes Number of bytes LEN2_0 Write data high Received data R_DAT Write data low X 1 Output to data length LEN_O is the number of write bit points requested by the master station 1 to 1968 points X 2 Output to the number of bytes LEN2_O is the number of write data bytes from the master station X 3 Output to received data R_DAT is write data requested by the master station X 4After specified device ON OFF processing is completed set the number of write bit points requested 1 to 1968 points in data length LEN_I xX 5Number of bytes LEN2_I and sent data S_DAT are not used Therefore set them to 0 2 25 Chapter 2 Specifications 6 ened Write holding registers multiple words code 10 h Request message Slave FB output terminal Slave FB input terminal Response message from the slave Communication ID high Communication ID high Communication ID TI_O Communication ID low Communication ID low Unused Data automatically set by slave FB Message length high Message length high Used internally by slave FB Message length low Message length low F Slave station number Unit ID slave station number STN_NO_OFB Unit ID slave station number Function code Function code 10
34. h bytes and low bytes as shown below High byte Low byte Sent data S_DAT gt High byte Low byte High byte Low byte Chapter 2 Specifications _C emodm Error response format The format in response to an error is as follows This applies to all functions Error response message Master FB output terminal Communication ID high Communication ID TI_O Communication ID low Unused Used internally by master FB Unit ID slave station number Slave station number STN_NO_O Function code OF h Function code F_CODE_O X 1 Output to the function code F_CODE_O is a value of the function code requested from the master plus 80 h Example If requested function code is 01 h 81 h is output to FCODE_O lt List of error codes gt Oth Error in function code O2h Error in specified address O3h Error in specified number of read write data Chapter 2 Specifications da 6 Communication parameters There are two types of MODBUS Ethernet communication parameters module parameters set in the system definition and parameters set in this FB Module parameters The parameters shown in the table below are set in the D300win system definition IP address 192 168 0 1 Optional IP address A Subnet mask 255 255 255 0 Optional Gateway Default gateway None None TCP send receive timeout value O to 300 in units of 0 1 seconds 300 300 Note 1
35. ication with MODBUS master device Xx For transmission parameters for MOD 1 Function codes This FB supports the following functions 01 Read coil output 02 Read input 03 Read holding register 04 Read input register 05 Force ON OFF 1 bit 06 Write holding register 1 word OF Force ON OFF multiple bits 10 Write holding registers multiple words 2 FB memory size Program area 1431 steps Data memory size Instance memory for user FB 130 words Standard memory 568 words Retain memory 10 words Instance memory for system FB 50 words Note1 The above memory size includes the sizes of MODBUS FB itself and sub FB accessed by MOD Note 2 The above standard memory or retain memory size includes the memory required to transm 2 17 BUS devices refer to the manual of each device For data format for each function refer to 4 Message format BUS FB it receive data Chapter 2 Specifications 3 FB form Open Communication request Slave IP address Slave station number Function code Beginning address Data length Number of bytes Sent data Received data Communication parameter Send receive buffer RAS information Name of input terminal Name of output terminal _C_emods BOOL OPEN BOOL S_REQ UDINT IP_ADD INT STN_NO_I WORD F_CODE _ WORD ADD_ WORD LEN_ WORD LEN2_ BOOL OK WORD O_STS BOO
36. in the proper direction Failure to do may result in malfunction When touching the PLC touch the grounded metal etc first to discharge any static electricity buildup from a human body etc Excessive static electricity may result in malfunction or failure O Perform wiring exactly according to the operating instructions and the manual Improper wiring may result in fire accident or failure When unplugging the cable from the outlet do not pull the cord The cable may break causing fire or failure Do not perform system changes connecting disconnecting I O modules while the power is on Performing system changes while the power is on may result in malfunction or failure Never attempt to repair this product by yourself Please contact us for repair In addition make sure to attach connectors properly when replacing batteries Improper connection may result in fire accident or failure Do not alter or disassemble the product Doing so may result in failure When disposing of this product treat it as industrial waste The product described in this manual is not designed or manufactured with the intention to be used in life critical equipment or systems When considering using the product described in this manual for a special purpose such as nuclear control aerospace medical use traffic device passenger mobile and related systems please contact our sales office When applying the product described in this manual to
37. ings or hardware problems the FB outputs an error code to the open status O_STS ON by application OFF by application Ed A Channel close processing Channel open error Note During data communication always keep OPEN signal ON a Channel open processing gt Communication OK OK Open error Open status O_STS O X Open status lt Open status gt 00 Completed normally In the case of NP1L ET1 A station number other than 1 to 238 was Error in specified Ethernet communication 10 modula station set In the case of CPU with built in Ethernet A station number other than 247 to 254 was set 11 Error in specified master side port number A number other than 1 to 127 was set 12 Error in specified slave response monitor timer A value smaller than O was set Error in specified Ethernet communication 13 A value other than O and 1 was set module type The following parameter was changed after the channel was opened 14 Error in communication parameter change Ethernet communication module station number Master side port numbe 91 Open failed No response channel open error etc Chapter 2 Specifications da 2 Data communication procedures In MODBUS protocol there are definitions of master station and slave station The master station MICREX SX is the master always starts communication and the slave station responds to it The transmission procedure is outlined b
38. n dust corrosive gas oil organic solvents or significant vibration impact may result in electric shock fire malfunction or failure Select a cable size suitable to the voltage applied or flowing current and tighten cables with the specified torque Improper wiring or tightening may result in fire falling of the product malfunction or failure O Construct the equipment so that dirt wire scrap iron powder or other foreign matter will not enter its interior It may cause fire accident malfunction or failure O After wiring is completed be sure to remove the dust cover sheet from the module unit prior to operation Operation with the dust cover sheet on may result in fire accident malfunction or failure Be sure to ground the earth terminal Failure to do so may result in electric shock or malfunction Periodically check the terminal screws and the set screws for secure tightness Use of the product with loose screws may result in fire or malfunction Be sure to put the enclosed connector covers on unused connectors Not doing so may result in malfunction or failure Be sure to put the terminal covers over the terminal blocks Failure to do so may result in electric shock or fire When performing program changes forced output start up stop etc during operation carefully check safety first An operational error may cause the machine to move resulting in mechanical damage or accidents Plug in the loader connector
39. nction 01 02 Therefore 0 is output 3 For S_DAT specify data that corresponds to the number of read bytes requested by the master using application X 4 For the number of bytes LEN2_I specify the number of bytes 1 to 250 bytes in sent data S_DAT X 5 Beginning address ADD_I and data length LEN_ are not used Set them to 0 2 22 Chapter 2 Specifications Q Force ON OFF 1 bit code 05 h Request message Communication ID high Communication ID low Message length high Slave FB output terminal Communication ID TI_O Unused Message length low Unit ID slave station number Function code O5 h Beginning address high Beginning address low FFh ON O0h OFF high 00h low gt Used internally by slave FB Slave station number STN_NO_OFB Function code F_CODE_O _C_emods Slave FB input terminal Response message from the slave Data automatically set by slave FB Beginning address ADD_O Set data based on received data using application gt received data R_DAT Function code F_CODE_l gt Beginning address ADD_l gt Sent data S_DAT gt Communication ID high Communication ID low Message length high Message length low Unit ID slave station number X 1 Output as the beginning word of re
40. nicating device is established Therefore in the slave FB if connection with the master station is not established open request is not made by the master during the time set in TCP send receive timeout value in the module parameter settings an open error occurs lt Open status gt 00 Completed normally In the case of NP1L ET1 A station number other than 1 to 238 was set 10 Error in specified Ethernet communication module station In the case of CPU with built in Ethernet A station number other than 247 to 254 was set 11 Error in specified master side port number A number other than 1 to 127 was set 13 Error in specified Ethernet communication module type A value other than O and 1 was set The following parameter was changed after the channel was opened Ethernet communication module station number Master side port number 91 Open failed No response channel open error etc 14 Error in communication parameter change 2 30 Chapter 2 Specifications Ena 2 Data communication procedures In MODBUS protocol there are definitions for master station and slave station The master station MICREX SX is the master always starts communication and the slave station responds to it The slave side transmission procedures are outlined below 1 scan Receiving completed R_END Received data R_DAT x Received data Data set by application Sent data S_DAT ati OFF by
41. nitor timer value in units of 0 1 second Note 3 Detail setting Own port reference number O to 65280 30 256 30 500 Note 5 Communicating device s port reference number O to 65280 256 Note 2 Note 1 Set the same value as the slave response monitor timer specified for the communication parameter Note 2 For master side actual port number specify 1 if not specified by the communicating device or a port number 1 to 65535 not used in a connected network environment Therefore specify own port reference number according to the actual port number to be set Note 3 This item is set for NP1L ET1 only The Ethernet parameters of CPU with built in Ethernet do not include this item Note 4 This item is set for the Ethernet of CPU with built in Ethernet only NP1L ET1 does not include this item Note 5 The slave side actual port number is fixed at 502 in the MODBUS Ethernet communication specifications Since own port number inside this FB is fixed at 2 specify 500 for own port reference number 2 28 Chapter 2 Specifications Seeds Communication parameter settings in FB Items to be set in array variables data type Array of 10_C_PAR_TYP11EMDM UINT types are shown in the table below 0 Communication UINT Set SX bus station number of target Ethernet communication module ET1 1 to 238 module number CPU with built in Ethernet 247 to 254 SX b
42. pecifications 2 2 MODBUS Ethernet master FB C emodm e 2 _C_emodm specifications _C_emodm _C_emodm is a FB for MICREX SX as the master to perform data communication with MODBUS slave devices For transmission parameters for MODBUS devices refer to the manual of each device 1 Function codes This FB supports the following function codes For data format for each function code refer to 4 Message format 01 01 Read coil output 02 02 Read input 03 03 Read holding register 04 04 Read input register 05 05 Force ON OFF 1 bit 06 06 Write holding register 1 word OF 07 Force ON OFF multiple bits 10 08 Write holding register multiple words 2 FB memory size Program area Data memory size Instance memory for user FB 1470 steps Standard memory Retain memory Instance memory for system FB Note1 The above memory size includes the sizes of MOD Note 2 The above standard memory or retain memory size includes the memory required to transm 136 words 570 words 10 words 58 words BUS FB itself and sub FB accessed by MOD BUS FB it receive data Chapter 2 Specifications 3 FB form Open Communication request Slave IP address Slave station number Function code Beginning address Data length Number of bytes Communication ID Sent data Received data Communication parameter Send receive buffer RAS information
43. r area 0 131 OF WORD receive buffer area 0 125 OF WORD sent data area 0 125 OF WORD received data area _C_SND_TYP11EMDS send buffer _C_RCV_TYP11EMDS receive buffer ARRAY 0 9 OF INT RAS area lt Format of variable connected to sent data terminal S_DAT gt Arrange array variables to be connected to S_DAT as follows High Low lt Assuming that the variable name is S_DAT gt S_DAT O Data Data1 VAR S_DAT 1 Data4 Data3 S DAT _C_SND_DAT_EMDS END_VAR S_DAT 124 Data250 Data249 S_DAT 124 Reserve Reserve lt Format of variable connected to received data terminal R_DAT gt Data to be connected to R_DAT are arranged as follows High Low lt Assuming that the variable name is R_DAT gt R_DAT O Data2 Datal R_DAT 1 Data4 Data3 VAR R_DAT _C RCV_DAT_EMDS END_VAR o R_DAT 124 Data2 Data24 Note Reserve is internally used by this FB DATH 2 Bias aes Do not attempt to access it R_DAT 125 Reserve Reserve 2 20 Chapter 2 Specifications Seeds 5 Message format by function code Information is output to this FB s output terminal in response to request messages from the master device Using the application prepare necessary data and set it to this FB s input termi nal and input output terminal Read coil code 01 h Read input bit code 02 h Formats of request messages from the master devi
44. s data type Array of 10_C_PAR_TYP11EMDM UINT types are shown in the table below Set SX bus station number of target Ethernet communication module 0 Communication module number UINT ET1 1 to 238 CPU with built in Ethernet 247 to 254 SX bus station number of CPU module Specify port number of MODBUS master device The actual port number of the master device may optionally be specified in the range of 1 to 65535 1 Master side port number UINT However specify 1 if not particularly specified by the communicating device or a port number 1 to 65535 not used in the connected network environment Set monitor timer value in units of 0 1 seconds from the time the master 2 Slave response monitor timer Note 1 UINT FB transmits a request message to the slave until it receives a response message from the slave ss Set type of Ethernet communication module to handle MODBUS Ethernet 3 Fthemekcommunication mie ape CUT communication 0 ET1 1 CPU s built in Ethernet 4 9 Reserve UINT Not used Note 1 Set the same value as the TCP transmission timeout value specified in module parameters 2 13 Chapter 2 Specifications Cod 2 2 2 Communication procedures 1 Channel open procedures Turn the FB s OPEN terminal ON to open Ethernet TCP IP channel If the channel is opened nor mally communication OK turns ON If it is not opened due to errors in communication parameter sett
45. system as the master station transmits and receives data to from slave devices In this case the MODBUS Ethernet FB uses master communication FB _C_emodm MICREX SX MODBUS _C_emodm FB master side TCP IP communication MODBUS slave device MODBUS slave device 2 SX series as slave station MICREX SX system as a MODBUS slave transmits and receives data to from the master device In this case the MODBUS Ethernet FB uses slave communication FB _C_emods MODBUS master device TCP IP communication MICREX SX MODBUS slave side _C_emods FB 1 2 Chapter 2 Specifications 2 1 Transmission specifications 2 1 1 MODBUS Ethernet TCP IP specifications Transmission procedure MODBUS TCP Data Binary 252 bytes frame IP address Set by system defined module property Factory default setting NP1L ET1 192 168 0 1 CPU with built in Ethernet 192 168 0 1 Port number MODBUS master client 1 65535 MODBUS slave server 502 Interface 10BASE T 100BASE TX Compatible Ethernet NP1L ET1 CPU s built in Ethernet or NP1L ET1 Number of nodes available for simultaneous communication When using NP1L ET1 Maximum 16 stations When using CPU with built in Ethernet Maximum 10 stations Maximum 16 stations NP1L ET1 specification 2 1 Chapter 2 S
46. us station number of CPU module Specify port number of MODBUS master device The actual port number of the 4 Master side port UINT master device may optionally be specified in the range of 1 to 65535 However number specify 1 if not particularly specified by the communicating device or a port number 1 to 65535 not used in the connected network environment 2 Reserve UINT Not used Ethernet A Set type of Ethernet communication module to handle MODBUS Ethernet 3 communication UINT DN i ne communication 0 ET1 1 CPU s built in Ethernet module type 4 9 Reserve UINT Not used Note 1 Set the same value as the TCP transmission timeout value specified for module parameters 2 29 Chapter 2 Specifications 6 ened 2 3 2 Communication procedures 1 Channel open procedures Turn the FB s OPEN terminal ON to open Ethernet TCP IP channel If the channel is opened normally com munication OK turns ON If it is not opened due to errors in communication parameter settings or hardware problems the FB outputs an error code to the open status O_STS ON by application OFF by application OPEN OPEN creme open processing Lo Channel close processing Communication OK OK Channel open error Note During data communication always keep OPEN signal ON Open error Open status O_STS O A Open status X The communication OK terminal turns ON after connection with the commu

Download Pdf Manuals

image

Related Search

Related Contents

T。SH`BA 東芝照明器具取扱説明書  38DL PLUS Ultrasonic Thickness Gage  Craftsman 40V Owner's Manual  User Manual - HuddleCamHD  TITAN PIZARRAS  WizFi210/220 User Manual  User Manual DMD 16x16 - WS    

Copyright © All rights reserved.
Failed to retrieve file