Home

MVI94-MBM User Manual

image

Contents

1. 43 APPENDIX PLC5 CONTROLNET 49 APPENDIX REMOTE I O WITH 1794 ASB 22 53 APPENDIX C MODBUS MASTER CONFIGURATION WORKSHEET sees 55 APPENDIX MVI94MBM CFG EXAMPLE CONFIGURATION FILE 59 APPENDIX E CONFIGURATION DEBUG PORT 61 T DISPLAY renda 61 edad 62 5 21 MSEC WICKS o5 We ti es ats eee ed 62 6 5 m966 OA eth dott Aad Pe dort 62 T 2 10 mSec Ticks mt i e et eee eee 62 Page 4 of 73 ProSoft Technology Inc November 18 2004 Table of Contents MVI94 MBM Modbus Master Serial Communications Flex I O Serial Communications Module 8 501 en uos cte eet en Up a e e eee ee 62 9 2 400 m Sec TICKS ate i o E PEE DEDI n E t e leds 62 0 NoimSec ted a eee ie 63 i nit t pibe deett nid m tun nit pte 63 ASASI FOA a rece teni te dei edat
2. 63 B Start Data Analyzer eite die redde eL d a 63 5 eotop Data AnalyZzer 64 M 2 MainiM6nu s eiit rete e rt 64 BACKPLANE TRANSFER 5 5 5 222 22 64 C MODBUS 4 4 64 D MODBUS DATABASE 64 xxeel diim 65 E 66 Oz SEAVESTATUS LIST icri aan entre 66 RECEIVE CONFIGURATION FROM 4 2 4222 67 SEND CONFIGURATION TO 2 4 67 V VERSION 68 W WARM BOOT MODULE ornate eher asc ade inan 68 1 MODBUS PORT STATUS fiiin crine 68 6 ZMODBUS PORT ripa nemi Uo Da ep Dai ctzceieacTentesauegadhestotdaeveaatesne 69 ESC COLD BOOT MODULE 2 eiae teras da die 69 SUPPORT SERVICE AND WARRANTY nunnan nunen nnne 71 ProSoft Technology Inc Page 5 of 73 November 18 2004 MVI94 MBM Table of Contents Flex I O Serial Communications Module Page 6 of 73 ProSoft Technology Inc November 18 2004 Introduction MVI
3. November 18 2004 Troubleshooting MVI94 MBM Modbus Master Serial Communications Flex I O Serial Communications Module MODULE COMMUNICATION ERROR CODES Incorrect slave address in response Incorrect function code in response Invalid CRC LRC value in response The table below lists the errors returned by the module for errors found when parsing the command list COMMAND LIST ENTRY ERRORS All parameters set to 1 Use the error codes returned for each command in the list to determine the success or failure of the command If the command fails use the error code to determine the cause of failure ProSoft Technology Inc Page 37 of 73 November 18 2004 MVI94 MBM Troubleshooting Flex I O Serial Communications Module Page 38 of 73 ProSoft Technology Inc November 18 2004 Serial Port Connections MVI94 MBM Modbus Master Serial Communications Flex I O Serial Communications Module 8 Serial Port Connections This section contains information on cable and pin assignments for the MVI94 MBM communication module Port 1 PRT 1 RS 232 interface on the module is used for a Configuration Debug port and requires no special cabling A standard null modem cable will work for the port The only pins required on the connector are 2 3 and 5 RxD TxD and GND Port 2 PRT 2 is the Modbus master port This port can be configured for RS 232 RS 422 and RS 485 communication interfaces Before installing t
4. ai i a ee e fecum emm ES Ee lt nom Si ii Page 58 of 73 ProSoft Technology Inc November 18 2004 Appendix D MVIS4MBM CFG Example Configuration File MVI94 MBM Flex I O Serial Communications Module Appendix D MVIS4MBM CFG Example Configuration File This appendix contains the contents of the example configuration file which is provided for use when setting up the MVI94 MBM This file is downloadable off the ftp site as referenced earlier in the manual VI94MBM CFG LOCATION DATE MODIFIED MODBUS MASTER with a Modbus Master port on COM2 Example file for use with the MVI94 MBM communication module Example shipped with MVI94 MBM communication module 07 03 2000 MODULE NAME TEST OF MVI94 MBM MODULE 02 22 2000 MAXIMUM REGISTER 4000 Maximum of register in virtual database FLOAT FLAG N Use floating point data Y Yes N No FLOAT START 7000 Start register of floats FLOAT OFFSET 1500 Virtual DB offset to floats ERROR STATUS BLOCK POINTER 150 Virtual DB offset to error status ERROR STATUS FREQUENCY 1500 Update freq of error sta
5. 66 66 66 66 66 66 66 66 66 82 66 66 86 881 4E 96 66 66 61 60 90 09 14 99 64 66 63 66 AG A3 F1 _ TT lt R gt lt 61 gt lt 03 gt lt 85 gt lt 00 gt lt 88 gt lt 78 gt lt 6 gt lt 1 gt lt gt Special characters used the display as follows Data enclosed in these characters represent data received on the port lt gt Data enclosed in these characters represent data transmitted on the port lt gt These characters are inserted when the RTS line is driven high on the port lt R gt These characters are inserted when the RTS line is dropped low on the port lt CS gt These characters are displayed when the CTS line is recognized high These characters are displayed when the timing mark interval has been reached This parameter is user defined ProSoft Technology Inc Page 63 of 73 November 18 2004 MVI94 MBM Appendix E Configuration Debug Port Operation Flex I O Serial Communications Module S Stop Data Analyzer This option is used to stop the analyzer Use this option to freeze the display so the data can be analyzed To restart the analyzer press the B key WARNING When in analyzer mode program execution will slow down Only use this tool during a trouble shooting session Disable the analyzer before leaving the module to run in its normal mode M Main Menu This me
6. ProSoft Technology Inc November 18 2004 Page 33 of 73 MVI94 MBM Troubleshooting Flex I O Serial Communications Module COLOR LEGEND DESCRIPTION Yellow U2 Communication Error This LED is used to indicate communication errors on the Modbus master port The LED is illuminated amber when no error exists on the port If a communication error is recognized on the port the LED will turn off If the LED is turned off check for errors in the command list to determine the error condition recognized by the module 7 2 Error and Status Data from Module The module error status data areas are discussed in this section The module contains three areas related to this data The user defines the location of two of these data sets in the virtual Modbus database of the module The error status data contains module data the command error list data set contains the errors associated with the command list and the slave status list contains the current communication status of each slave on the master port 7 2 1 ERROR STATUS DATA The error status data table is located at the virtual Modbus address assigned by the user If the address is set to 1 or the frequency parameter is set to 0 the data will not be placed in the database It will only be available through the Configuration Debug Port If valid address and frequency values are assigned the module will update the Modbus data area The data area will be initialized with
7. 13 Monitor the communication statistics for the port to be certain everything is working correctly 14 View the virtual Modbus database in the module using the terminal emulator 15 Create the ladder logic program for your system An example PLC5 ladder program is available on the ftp site This logic is responsible for transferring the data between the module and processor ProSoft Technology Inc Page 11 of 73 November 18 2004 MVI94 MBM Quick Start Guide Flex I O Serial Communications Module 16 Connect the module to the Flex I O communication adapter If all is configured correctly the data in the module should be visible in the processor 17 Use the Configuration Debug port to view the backplane transfer statistics Page 12 of 73 ProSoft Technology Inc November 18 2004 Virtual Modbus Database Concept MVI94 MBM Modbus Master Serial Communications Flex I O Serial Communications Module 3 Virtual Modbus Database Concept Central to the functionality of the module is the virtual Modbus database This database is used as the interface between remote Modbus slave devices and the Flex I O bus The size content and structure of the database are completely user defined The Flex I O bus is used to read data from and write data to the database using the backplane interface The module interfaces data contained in remote Modbus slave devices to the virtual Modbus database using the Modbus master port User comman
8. repair or replace Product at no additional charge freight prepaid except as set forth below Repair parts and replacement Product will be furnished on an exchange basis and will be either reconditioned or new All replaced Product and parts become the property of ProSoft If ProSoft determines that the Product is not under warranty it will at the Customer s option repair the Product using current ProSoft standard rates for parts and labor and return the Product freight collect ProSoft Technology Inc Page 73 of 73 November 18 2004
9. 0 Length 20 ADD Add Source A 20 20 lt Source B N70 40 lt Dest N70 40 EQU MOV Equal Move Source A N70 Source 0 40 lt 0 Source 240 Dest N70 240 40 lt Page 46 of 73 ProSoft Technology Inc November 18 2004 PLC Code Samples MVI94 MBM Modbus Master Serial Communications Flex I O Serial Communications Module ProSoft Technology Inc Page 47 of 73 November 18 2004 MVI94 MBM Flex I O Serial Communications Module Page 48 of 73 ProSoft Technology Inc November 18 2004 Appendix A PLC5 ControlNet Configuration Adding the MVI94 to the ControlNet network To access the MVI94 module and the 1794 ACRN15 ControlNet Flex I O adapter the PLC 5 must first be configured using the RSNetWorx tool The following screens show the configuration selections which were used with the example program MVICIO RSP when setting up the ControlNet network using RSNetWorx for ControlNet Rev 1 80 38 2 ControlNet 3 RSNetWorx Network Edit View Selection Help T Edits Enabled Curent Pending Current iptimteed edits ered Network Update Time ms 4 00 Ava Scheduled Band 2 30 Unscheduled Bytes Per Sec 540135 Peak Scheduled Band 3 05 alal e iv 4 Networks Hardware 9 25 ControlNet gs ControlNet 2 ControlNet 3 o1 PLcs 40c 7 02 1794 ACN15 1 0 Adapter 15 8 03 1756 CNB Br
10. 7000 data requests for register 7000 will use the internal Modbus register 3000 ProSoft Technology Inc Page 55 of 73 November 18 2004 MVI94 MBM Appendix C Modbus Master Config Worksheet Flex I O Serial Communications Module Protocol This parameter specifies the Modbus protocol to be used on the port Valid Protocols O Modbus and 1 Modbus ASCII Baud Rate This is the baud rate to be used on the port Enter the baud rate as a value For example to select 19K baud enter 19200 Valid entry for this field include 110 150 300 600 1200 2400 4800 9600 19200 28800 38400 57600 and 115 Parity This is the Parity code to be used for the port The coded values are as follows 1 Odd 2 Even 3 Mark and 4 Space word used by the protocol ca A with each data value sent RTS On 0 to 65535 This parameter sets the number of milliseconds to delay after RTS is asserted before the data will be transmitted RTS Off 0 to 65535 This parameter sets the number of milliseconds to delay after the last byte of data is sent before the RTS modem signal will be set low Use CTS Line YorN This parameter specifies if the CTS modem control line is to be used If the parameter is set to N the CTS line will not be monitored If the parameter is set to Y the CTS line will be monitored and must be high before the module will send data This parameter is normally only required
11. Compute Dest N23 1 6 lt Expression N23 1 9 Copy File Source 23 130 Dest N23 N23 1 423110 Des 423231 Length 9 Compute lt Length 9 CPT Compute Dest N23 1 lt Expression N23 1 9 Compute Dest N23 1 6 lt Expression N23 1 2 2 MOV Move E 1 Source 0 0 lt B3 0 0000000000000000 lt Jump To Subroutine LL Prog File Number 17 24 Input Parameter N23 1 Input Parameter 5921 ProSoft Technology Inc November 18 2004 Page 45 of 73 MVI94 MBM PLC Code Samples Flex I O Serial Communications Module Receiving data on Port 2 The 194 65 driver ladder logic fills data from the module into the appropriate Px_RXBUF file Once a complete message has been received from the module the Port RX Ready Flag is set The following logic shows an example of how this flag can be trapped to execute some logic after which the flag is cleared The example program does a simple building of a rollover buffer The key points to get out of this example logic however is the conditional testing of the Port 2 RX BUF Ready flag N27 35 5 and the clearing of this flag once the data has been handled The appropriate flags for testing for each port are Port 1 RX BUF ReadyN27 35 4 Port 2 RX BUF ReadyN27 35 5 N27 35 0003 File 5 Source N24 1 Dest amp A9 N7
12. FROM REMOTE This menu option is used to transfer the module configuration from the PC used for configuration to the module This transfer requires the terminal software provided by ProSoft After selecting the option the following message will appear on the terminal display Press V key to confirm configuration receivet Receiving configuration TRANSFERRING CONFIGURATION FROM REMOTE TO UNIT START PROGRAM ON COMPUTER AND SELECT SEND CONFIGURATION OPTION BY PRESSING THE F3 KEY On the terminal emulator press the F3 key and enter the file name containing the configuration for the module when prompted for the filename If the file is found it will immediately be downloaded to the module After the download operation is complete the module will restart to read the new configuration S SEND CONFIGURATION TO REMOTE This menu option is used to transfer the module configuration from the module to the PC using the terminal software This transfer requires the terminal software provided by ProSoft After selecting the option and confirming the request the following message will be displayed on the terminal Press V key to confirm configuration send Sending configuration TRANSFERRING CONFIGURATION FILES FROM UNIT TO REMOTE START PROGRAM ON COMPUTER AND SELECT RECEIVE CONFIGURATION OPTION BY PRESSING THE F4 On the terminal emulator press the F4 key and enter a file name when prompte
13. Flex I O Serial Communications Module 7 1 LED Indicators eiit i ecu 33 7 2 Error and Status Data from Module 34 7 2 1 ERROR STATUS d eere rn HM 34 7 2 2 COMMAND ERROR 0 35 7 2 3 SEAVE S TATUS LIST eii eerte P i i E FO ct UR Bai EE UR eves 35 7 8 ERROR CODES 36 7 3 1 MODBUS ERROR nn 36 7 52 MODULE ERROR CODES Arns aae i a S Re AA e e 36 8 SERIAL PORT CONNECTIONS eroe enin rennen ere ende n nnne nnne nns 39 8 1 RS 232 Null Modem Connection Hardware Handshaking 39 8 2 RS 232 Null Modem Connection No Hardware Handshaking 39 8 3 RS 232 Modem 40 8 4 RS 422 INTERFACE 65 0 2 1 40 8 5 RS 485 INTERFACE 65 0 42 1 40 9 PLC CODE SAMPLES ere ccena aa i coc cake 41 9 1 Ladder Program Files 41 9 2 Ladder Data Files 41 9 3 Port Configuration Setup s sisien isinne aoaaa 42 9 4 Initializatlon Values a a ee a eerie iei idein 43 9 5 Using the Example
14. Flex I O Serial Communications Module 5 Master Command List The 194 communication module s primary services are data concentration and communication gateway The Modbus master port polls Modbus slave devices based on user defined commands and places the data in the virtual Modbus database The Flex I O bus interfaces with this database to a Flex processor The user is responsible for defining the structure and content of the virtual Modbus database In order to interface the virtual Modbus database with Modbus slave devices the user must construct a command list The commands in the list specify the Modbus slave device to be utilized the function to be performed read or write the data area in the device to interface with and the position in the virtual Modbus database to be associated with the device data Up to 100 commands can be entered for this purpose The list is processed from top command 0 to bottom A poll interval parameter is associated with each command to specify a minimum delay time in seconds between the issuance of a command If the user specifies a value of 10 for the parameter the command will be executed no more frequently than every 10 seconds Additionally a user specified time delay can be inserted between the issuance of each command This is useful for slow responding slave devices Write commands have a special feature as they can be set to execute only if the data in the write command changes If
15. ProSoft Technology Inc Page 65 of 73 November 18 2004 MVI94 MBM Appendix E Configuration Debug Port Operation Flex Serial Communications Module COMMAND ERROR LIST COMMANDS 8 TO 19 DECIMAL 8 8 The page of data displayed can be changed by using the N or P keys The format of the data can be changed using the D and H keys To return to the main menu mode press the M key L COMMAND LIST After selecting the option the following text will be displayed Command List Menu Selected This indicates that the command list menu mode is selected Options available in this mode are displayed by pressing the key on the terminal emulator If the key is pressed the following will be displayed COMMAND LIST MENU Display Menu S Shou Again 5 Pages P Previous Page Skip 5 Pages N Next Page Menu Select an option by pressing the associated key To display the current list page selected press the S key A display similar to the one shown below will appear COMMAND LIST FOR COMMANDS 8 TO 9 EN MBREG POLLINT COUNT SWAP NODE FUNC ADDRS LASTERR 6 6 32 6 1 3 33000 6X6666 566 6 126 766 126 966 126 1166 126 1366 126 1566 126 34666 6X6666 34166 6X6666 34266 6X6666 46666 6X6666 41666 6X6666 42666 6X6666 6X 6666 6X 6666 6X 6666 1 1 1 1 1 1 1 6 6 6 ec 02 02 02 02 C2 c2 C2 C2 C2 C2 C2 cC c2 c3 CO CO CO CO CO CO The pa
16. Resp THO 1666 Retries 2 Err Delay 28 The information displayed reflects that stored in the module s Flash ROM This information should be reviewed each time a new configuration is downloaded to the module to be certain the configuration is correct ESC COLD BOOT MODULE This menu option is used to force the module to perform a cold boot operation This will cause the module to restart and force all drivers to be loaded The module will use the configuration stored in the module s Flash ROM to configure the module ProSoft Technology Inc Page 69 of 73 November 18 2004 MVI94 MBM Appendix E Configuration Debug Port Operation Flex Serial Communications Module Page 70 of 73 ProSoft Technology Inc November 18 2004 Support Service and Warranty MVI94 MBM Flex I O Serial Communications Module Support Service and Warranty Technical Support ProSoft Technology survives on its ability to provide meaningful support to its customers Should any questions or problems arise please feel free to contact us at Factory Technical Support 1675 Chester Avenue 2nd Floor Bakersfield CA 93301 661 716 5100 661 716 5101 Fax E mail address prosoft prosoft technology com Web Site http www prosoft technology com Before calling for support please prepare yourself for the call In order to provide the best and quickest support possible we will most likely ask for the following information you may wish
17. Sm rr 11 3 VIRTUAL MODBUS DATABASE 13 4 DATA TRANSFEH 15 4 1 EVENTS BLOCKS 1000 1255 18 4 2 COMMANDS BLOCKS 2001 2006 2 2 111 19 4 3 WARM BOOT BLOCK 9998 2 20 4 4 COLD BOOT BLOCK 9999 0 0 21 5 MASTER COMMAND 15 2 aaa a dada sanas aa RR RR RR RR RR sa mad 23 6 MODULE a raa dA 25 6 1 MODBUS MASTER 26 6 2 COMMANDS 22 28 6 2 1 Enable Codeine 29 6 2 2 Internal Address feeds adel eect late ates 29 6 2 3 Poll Interval TIimie 2 eek an el 29 6 2 4 COUNTS e PLE 29 6 2 5 i Leer 30 6 2 6 Node dee aee Ld ced eve boe OR Ne d e dei 30 6 2 7 FUNCOM nomtne Outer esa Li ideis hrs al E 30 6 2 8 Device Modbus Add E SS tta RI EDGE Del 30 7 TROUBLESHOOTING aeu see tess andecdic 33 ProSoft Technology Inc Page 3 of 73 November 18 2004 MVI94 MBM Table of Contents
18. The required 6 word read data is copied to the module s output image words 1 to 6 To trigger the transfer operation the ladder logic moves the read block code into word 0 of the output image 5 The module s program recognizes the new read block code It transfers the data to the correct offset in the virtual Modbus database using the following function Modbus offset Read Start Register read block code 1 6 The module sets the last read block code to the value of read block code 6 The module now selects the next read and write blocks The data for the write operation is placed in the input image and the read block code is set The module triggers the transfer operation by setting the new write block code in word 0 of the input image The sequence continues at step 3 The discussion above is for normal data transfer operation The table below lists the block identification codes used by the module ProSoft Technology Inc Page 17 of 73 November 18 2004 MVI94 MBM DATA TRANSFER Flex I O Serial Communications Module 4 1 BLOCK IDENTIFICATION CODES TYPE NUMBER DESCRIPTION R W 1 TO 666 Data blocks used to transfer data from the module to the backplane and from the backplane to the module The module s input output images are used for the data transfers 1000 to These blocks are used to transfer event 1255 Modbus commands from device on the backplane to the module Th
19. and Port 2 as a receive only port This functionality can easily be changed by the ladder programmer MVI94 GSC Driver Logic The following ladder program files can be moved anywhere in a customers application ladder program but their functionality should not be changed without significant understanding of the results 20 MVI MAIN This routine is the main routine called by the application ladder program and generally serves as the primary interface with the MVI94 GSC Functionality in this SBR includes timeout logic and initialization of the ports on the MVI94 calls to the buffer TX and RX handling routines and the CIO instructions performing the actual data transfer to the MVI94 21 MVI Init Initializes the necessary working registers when called 22 MVI Rcv Handles building the receive buffer in the ladder program as data is received from the MVI94 23 MVI Xmit Handles the movement of the transmit buffer to the MVI94 in the ladder program 24 MVI Send Called whenever a string is ready to be sent out a port Calls to the routine are conditioned based on several status conditions See example ladder program 2 9 2 Ladder Data Files Data File Name Description Demo Data Files B3 DEMO ONLY Used in Program file 2 as Alarm bits to trigger the movement of ASCII strings into the P1 TXBUF ProSoft Technology Inc Page 41 of 73 November 18 2004 MVI94 MBM Flex I O Serial Communications Module PLC Code Samples Data File
20. for most modem applications 8 4 RS 422 INTERFACE CONNECTIONS The diagram below applies when the RS 422 interface is selected PRT 2 RS 422 DB 9 Pin Male Device TxD RxD TxD H RxD RxD 2 TxD 6 RxD TxD GND Ej GND Optional 8 5 RS 485 INTERFACE CONNECTIONS The diagram below applies when the RS 485 interface is selected PRT 2 RS 485 DB 9 Pin Male Device TxRxD 1 TxRxD TxRxD 8 TxRxD GND 5 _ _ GND Optional Page 40 of 73 ProSoft Technology Inc November 18 2004 PLC Code Samples MVI94 MBM Modbus Master Serial Communications Flex I O Serial Communications Module PLC Code Samples Sample ladder logic for the MVI94 GSC module has been developed in order to ease the implementation in the field This logic is available on our web ftp site for the PLC 5 and is partially documented in the following section 91 Ladder Program Files Program File Name Functional Description Main Sample logic The functionality performed by SBR2 can be moved anywhere in a customers ladder program as long as there is a JSR call to the routine once per program scan 2 MAIN SAMPL This ladder program is where the application handles the setup and retrieval of data between the rx tx buffers for each of the ports and makes the JSR call to SBR 20 The example program shows Port 1 being used as a Transmit only port Sending out Alarm messages to a printer
21. nn 17944 8 8 0 Flex 1 0 8 Ch Analog Input Series B 1 1 1 0 0 2 1 2 0 0 3 1 3 0 0 ProSoft Technology Inc Page 53 of 73 November 18 2004 MVI94 MBM Appendix B Remote I O with 1794 ASB Adapter Flex I O Serial Communications Module Page 54 of 73 ProSoft Technology Inc November 18 2004 Appendix C Modbus Master Config Worksheet MVI94 MBM Flex I O Serial Communications Module Appendix C Modbus Master Config Worksheet This appendix contains configuration forms that will aid in the configuration of the module If you design your system before trying to directly implement it you will have a greater chance of success Fill in the configuration form for your application then edit the configuration text file MVI94 MBM MODBUS MASTER COMMUNICATION MODULE CONFIGURATION Section Item Value Description MODBUS MASTER Configuration header for Master Modbus Port Module Name to 80 of the module for use on reports Use this chars parameter to identify your module in your system Maximum Register 1 to 3996 This parameter defines the maximum register in the virtual Modbus Database You should size the database for your application leaving room for expansion in the future Requests for registers outside of the range selected will be returned with an error Float Start point values for registers as specified by the two following parameters 0 to 32767 This param
22. the number registers in the internal Modbus database to consider from the read operations over the backplane This parameter is used to compute the number of blocks to transfer from the backplane to the module The number of blocks must be gt 2 for proper backplane data transfer COMMANDS Section The COMMANDS section of the configuration file is used to set the Modbus master port command list This list is used to poll Modbus slave devices attached to the Modbus master port The module supports numerous commands This permits the module to interface with a wide variety of Modbus protocol devices The command list is formatted differently than the other sections of the configuration file Commands are present in a block between the labels START and END These labels are used to inform the program where the list resides The module s program will parse all commands after the START label until it reaches the END label or until the command count entered for the port is reached The function codes used for each command are those specified in the Modbus protocol Each command list record has the same format The first part of the record contains the information relating to the MVI94 MBM communication module and the second part contains information required to interface to the Modbus slave device The command structure is displayed in the table below for all functions supported Page 28 of 73 MVI Module Configuration ProSoft Tech
23. to fax it to us prior to calling 1 Product Version Number 2 Configuration Information Communication Configuration Jumper positions 3 System hierarchy 4 Physical connection information RS 232 422 or 485 Cable configuration 5 Ladder Logic program 6 Module Operation Block Transfers operation LED patterns An after hours answering system on the Bakersfield number allows pager access to one of our qualified technical and or application support engineers at any time to answer the questions that are important to you Module Service and Repair The MVI94 GSC is an electronic product designed and manufactured to function under somewhat adverse conditions As with any product through age misapplication or any one of many possible problems the card may require repair ProSoft Technology Inc Page 71 of 73 November 18 2004 MVI94 MBM Support Service and Warranty Flex I O Serial Communications Module When purchased from ProSoft Technology the module has a one year parts and labor warranty according to the limits specified in the warranty Replacement and or returns should be directed to the distributor from whom the product was purchased If you need to return the card for repair it is first necessary to obtain an RMA number from ProSoft Technology Please call the factory for this number and display the number prominently on the outside of the shipping carton used to return the card General Warr
24. when half duplex modems are used for communication 2 wire Modbuo be processed by the Modbus Master port Command Delay 0 to 65535 This parameter specifies the number of milliseconds to wait between issuing each command This delay value is not applied to retries Error Block Pointer 1 to 3995 This parameter sets the address the internal Modbus database where the command error data will be placed If the value is set to 1 the data will not be transferred to the database Response Timeout to 65535 This parameter represents the message response timeout period in 1 ms increments This is the time that a port configured as a master will wait before re transmitting a command if no response is received from the addressed slave The value is set depending upon the communication network used and the expected response time of the slowest device on the network Retry Count 0 to 10 This parameter specifies the number of times a command will be retried if it fails Error Delay Count 0 to 65535 This parameter specifies the number of polls to skip on the slave before trying to re establish communications After the slave fails to respond the master will skip commands to be sent to the slave the number of times entered in this parameter Page 56 of 73 ProSoft Technology Inc November 18 2004 Appendix C Modbus Master Config Worksheet MVI94 MBM Flex I O Serial Communica
25. zeros whenever the processor is initialized This occurs during cold start power on reset reset push button pressed or a warm boot operation commanded or loading of new configuration The data area is a 32 word register block The structure of the block is shown below ERROR STATUS TABLE 0 jProgramCyce Counter by the module command queue master port Current communication state code for the Modbus master port Page 34 of 73 ProSoft Technology Inc November 18 2004 Troubleshooting MVI94 MBM Modbus Master Serial Communications Flex I O Serial Communications Module 7 2 2 7 2 3 SYSTEM INFORMATION 9 Name ASCII MBAB Revision ASCII Operating System Rev ASCII Production Run Number ASCII MASTER PORT STATISTICS Number of Command Requests Number of Command Responses 17 18 Number of Command Responses 19 28 Total number of blocks parsed Total number of event blocks received 30 Total number of command blocks received Total number block transfer errors COMMAND ERROR LIST Each command in the command list has a reserved word value for a status error code This error data list can be read using the Configuration Debug Port Additionally the data can be placed in the virtual Modbus database of the module The configuration parameter Command Error Pointer is used to define the register address in the virtual Modbus database where the data will be pla
26. 15 p UE to 4 This is the Parity code to be used for the port The coded values are as follows 0 None 1 Odd 2 Even E Mark and 4 Space HN Bits This parameter sets the number of data bits for each word used by the protocol with each data value sent RTS On to 65535 parameter sets the number of milliseconds to delay after RTS is asserted before the data will be transmitted Off 0 to 65535 This parameter sets the number of milliseconds to delay after the last byte of data is sent before the RTS modem signal will be set low ae CTS Line This parameter specifies if the CTS modem control line is to be used If the parameter is set to N the CTS line will not be monitored If the parameter is set to Y the CTS line will be monitored and must be high before the module will send data This parameter is normally only required when half duplex modems are used for communication 2 wire PRIN be processed by the Modbus Master port Command Delay to 65535 This parameter specifies the number of milliseconds to ma between issuing each command This delay value is not applied to retries Error Block Pointer 1 to 3995 This parameter sets the address in the internal Modbus database where the command error data will be placed If the value is set to 1 the data will not be transferred to the database Response Timeout 0 to 65535 This parameter represents the message response tim
27. 4 ASB Adapter MVI94 MBM Flex Serial Communications Module Appendix B Remote I O with 1794 ASB Adapter The same messaging example has also been implemented using a 1794 ASB Remote IO Flex I O adapter instead of the ControlNet adapter Only one of the program files must be modified to use the RIO adapter Program File 20 In this file rungs must be added to perform the block transfers necessary to copy the MVI module image data to the PLC data tables Figure 1 and Figure 2 show the RSLogix 5 IO chassis configuration dialogs for the 1794 ASB Flex I O adapter Chassis 2 in Figure 1 shows that communications channel 1B is connected to the 1794 ASB Flex adapter Figure 1 RSLogix 5 IO Configuration for 1794 ASB ll 170 Configuration Chassis Table L OL x Show 0 Rows 1 0 Channel Chassis Type s 1771 1 4 slots PLC5 20 O L 0 0 0 3 eeu ControlNet Node Complementary 0 lt DF1 gt 1 lt DH gt Chassis 2 1B lt I 0 Scanner 1794 1 0 Adapter 1794 58 O 156 1 0 1 3 Figure 2 shows the configuration for Chassis 2 Note that older versions of RSLogix 5 will not have the MVI94 GSC module on the list of known modules in this case choose one of the 16 word analog modules such as the 1794 IE8 as shown No other module configuration is necessary Figure 2 RSLogix 5 IO Chassis Configuration for 1794 ASB Chassis Chassis 2 Rack 1 Group 0 Attached to Channel 1B of PLC Description
28. 9 MVI_CNET Q20 0 CT29 0 10 E 2 CNET STAT ControlNet Transfer is E 04 cFG EN Control CT290 N306 CNET DATA Setup Screen 307 DATA E Force Files oo Du Extended Force Files Fiet 10 File 2 ControlNet I O Transfer D Fie 3 Control CT29 1 n T Setup Screen File 4 Custom Data Monitors untitled 8 Trends Database Address Symbol E instruction Comments amp Rung Comments Page Title Address Symbol Picker amp Symbol Groups File 2 MVIRcv X PROCESS 7 For Help press F1 XREF Class1 20 0008 APP READ RSLogix 5 Mvi94asb rsp FIIES File Edit View Search Comms Tools Window Help PROGRAM E No Forces 5 E aem o ome prem Diver ABLKTA E Nise 8t X Tmencouier A 4 Compare MVIS4ASB ASP 1 OUTPUT E n22 P1_RXBUF E N23 P1_TxBUF N24 P2_RXBUF E N25 P2_TXBUF 7 esc Communication Command 1 128 TMRS Ignore if timed out TO 0 cr28 Mvi Awaiting Execution EW 0 02 5 Continuous Run CO p ContoINet IO Transfer 04 Enor ER 0 Control 290 306 DATA 07 CNET DATA p This PL
29. 94 MBM Modbus Master Serial Communications Flex I O Serial Communications Module 1 Introduction The MVI94 MBM communication module is used to interface Modbus slave devices with the Flex I O system The module contains a virtual Modbus database that is defined by the user This database is used for the request and command messages sent from the Modbus master port to Modbus slave devices Data areas in the virtual Modbus database can be reserved for status and error information generated by the module under user control The virtual Modbus database also interfaces with the Flex I O system using the Flex bus backplane Data is made available to the PLC or any processor on ControlNet network using this backplane interface Input and output image tables in the module are used to present the data in the virtual Modbus database to the backplane A Modbus master port is present on the communication module to continuously poll Modbus slave devices Up to 100 user defined commands can be defined for the port Data read from Modbus slave devices are placed in the virtual Modbus database Any write requests for the Modbus slave devices are sourced with data from the virtual Modbus database The module can be configured to place slave devices that are not responding to commands at a lower priority If the module recognizes a slave device has failed to respond to a message after the user defined retry count it will mark the slave as in commu
30. ASCII format This format is most useful when viewing Modbus ASCII protocol messages B Start Data Analyzer This option is used to start the data analyzer After the key is pressed all data transmitted and received on the currently selected port will be displayed An example display is shown below 66 66 6068 88 868 66 66 66 668 88 668 66 66 66 66 88 66 66 90 881 96 96 96 66 66 66 86 58 37 _TT_ lt R gt lt 61 gt lt 63 gt lt A4 gt lt 1 O gt lt 00 gt lt 78 gt lt 67 gt lt 1D gt lt R gt TT _ 61 63 F6 66 66 66 66 00 90 99 66 00 00 90 99 00 80 88 96 66 66 90 997 00 00 _ TT_ 86 86 96 66 66 66 66 90 99 99 98 98 96 96 96 66 66 66 90 66 66 66 66 66 86 66 66 66 66 66 90 881 96 96 96 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 86 881 96 96 96 66 66 66 90 66 66 66 66 66 66 66 66 66 66 66 66 881 96 96 96 66 66 66 86 66 66 66 66 66 86 66 66 66 66 66 90 881 96 96 96 66 66 66 66 66 66 66 66 86 86 66 66 66 66 66 90 881 96 96 96 66 66 66 86 66 66 66 66 66 86 66 66 66 66 66 90 881 96 96 96 66 66 66
31. CS Done DN 0 Transmitting ST 6 B Ei 29 0 Force Files B Size Elements 8__ Enabled EN 1 Du Port Number 2 E j Extended Force Files Target Device H Local ControlNet Node 2 File 2 E File 4 Error Description Custom Data Monitors No errors E lt Untitled gt Trends 5 28 Database 8 Address Symbol instruction Comments amp Rung Comments Page Title 8 Address Symbol Picker amp Symbol Groups Error SCTE Ms ControlNet LO Transfer B Slot Number 0 Control CT291 Setup Screen File 2 MVIRcv X PROCESS For Help press F1 XREF Class1 00000 READ ProSoft Technology Inc Page 51 of 73 November 18 2004 MVI94 MBM Appendix A PLC5 ControlNet Configuration Flex I O Serial Communications Module 21 OUTPUT El N22 P1 RxBuF N23 P1 N24 P2_RXBUF 9 ControlNet Transfer Control CT29 0 Extended Force Files o File 1 j Custom Data Monitors COMO lt Untitied gt adaressiSymbol instruction Comments Rung CommentsiPage T Address Symbol Picker amp Symbol Groups Page 52 of 73 ProSoft Technology Inc November 18 2004 Appendix B Remote I O with 179
32. MVI94 MBM Modbus Master Serial Application Status Communications Backplane Status Flex I O Serial U1 U1 STS PRT2 L Communications Module NAVIS Multi Vendor Interface 2277744 PRT1 Configuration User Manual November 18 2004 ProSoft TECHNOLOGY Please Read This Notice Successful application of this module requires a reasonable working knowledge of the Modbus Master Serial Communications Flex I O Serial Communications Module hardware and the application in which the combination is to be used For this reason it is important that those responsible for implementation satisfy themselves that the combination will meet the needs of the application without exposing personnel or equipment to unsafe or inappropriate working conditions This manual is provided to assist the user Every attempt has been made to assure that the information provided is accurate and a true reflection of the product s installation requirements In order to assure a complete understanding of the operation of the product the user should read all applicable Allen Bradley documentation on the operation of the A B hardware Under no conditions will ProSoft Technology Inc be responsible or liable for indirect or consequential damages resulting from the use or application of the product Reproduction of the contents of this manual in whole or in part without written permission from ProSoft Technology Inc is prohibited Information in thi
33. Name Description A9 DEMO ONLY Used in Program file 2 as a rollover buffer receiving 20 words of data at a time from the receive buffer MVI94 GSC Driver Data Files N20 MVI INPUT CIO input file Use in a similar fashion if using BTR instructions N21 MVI OUTPUT CIO output file Use in a similar fashion if using BTW instructions N22 P1 RXBUF Port 1 Receive buffer File number easily changed during port setup in N27 N23 P1 TXBUF Port 1 Transmit buffer File number easily changed during port setup in N27 N24 P2 RXBUF Port 2 Receive buffer File number easily changed during port setup in N27 N25 P2 TXBUF Port 2 Transmit buffer File number easily changed during port setup in N27 N27 GSC CNTL MVI94 GSC module data file The registers in this file are used to setup store the port configurations for the GSC module as well as the working registers for the ladder logic T28 GSC TMRS Timeout timers for the ladder program CT29 MVI CNET CIO instruction control data files ControlNet Files N102 CNET STAT These data files are setup by the RSNetworks program N103 CNET CFG and are not used by the ladder program directly N306 CNET DATA N307 CNET DATA 9 3 Port Configuration Setup Configuration of the MVI94 ports is quite easy in the example program Simply open N27 data file in the programming software and using the data structure and layout of the configuration words detailed in Sec
34. OR SERVICES PROVIDED PURSUANT TO THIS AGREEMENT INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANT ABILITY AND FITNESS FOR A PARTICULAR PURPOSE NEITHER PROSOFT OR ITS DEALER SHALL BE LIABLE FOR ANY OTHER DAMAGES INCLUDING BUT NOT LIMITED TO DIRECT INDIRECT INCIDENTAL SPECIAL OR CONSEQUENTIAL DAMAGES WHETHER IN AN ACTION IN CONTRACT OR TORT INCLUDING NEGLIGENCE AND STRICT LIABILITY SUCH AS BUT NOT LIMITED TO LOSS OF ANTICIPATED PROFITS OR BENEFITS RESULTING FROM OR ARISING OUT OF OR IN CONNECTION WITH THE USE OR FURNISHING OF EQUIPMENT PARTS OR SERVICES HEREUNDER OR THE PERFORMANCE USE OR INABILITY TO USE THE SAME EVEN IF PROSOFT OR ITS DEALER S TOTAL LIABILITY EXCEED THE PRICE PAID FOR THE PRODUCT Where directed by State Law some of the above exclusions or limitations may not be applicable in some states This warranty provides specific legal rights other rights that vary from state to state may also exist This warranty shall not be applicable to the extent that any provisions of this warranty is prohibited by any Federal State or Municipal Law that cannot be preempted Page 72 of 73 ProSoft Technology Inc November 18 2004 Support Service and Warranty MVI94 MBM Flex I O Serial Communications Module Hardware Product Warranty Details Warranty Period ProSoft warranties hardware product for a period of one 1 year Warranty Procedure Upon return of the hardware Product ProSoft will at its option
35. The parameters shown at the bottom of the display show the current analyzer settings Each of the menu options is discussed in the sections below 5 1 mSec Ticks This option is used to generate 1 millisecond timing marks on the display This may help when determining communication timing characteristics 6 5 mSec Ticks This option is used to generate 5 millisecond timing marks on the display This may help when determining communication timing characteristics 7 10 mSec Ticks This option is used to generate 10 millisecond timing marks on the display This may help when determining communication timing characteristics 8 50 mSec Ticks This option is used to generate 50 millisecond timing marks on the display This may help when determining communication timing characteristics 9 100 mSec Ticks This option is used to generate 100 millisecond timing marks on the display This may help when determining communication timing characteristics Page 62 of 73 ProSoft Technology Inc November 18 2004 Appendix E Configuration Debug Port Operation MVI94 MBM Flex Serial Communications Module 0 No mSec Ticks This option is used to turn the display of timing marks off H Hex Format This option is used to select the display of the data in hexadecimal format This format is most useful when viewing Modbus RTU protocol messages A ASCII Format This option is used to select the display of the data in
36. Write Operation Read Operation pn RD BLK RD DATA Write Operation Read Operation The module s program is responsible for setting the block identification code used to identify the data block written and the block identification code of the block it wants to read from the processor User configuration information determines the read Read Start Register and write Write Start Register locations in the virtual Modbus database and the amount of data transferred Read Register Count and Write Register Count Each read and write operation transfers a six word data area The write operation contains a two word header that defines the block identification code of the write data and the block identification code of the read block requested These identification codes are in the range of 0 to 666 A value of zero indicates that the block contains no data and should be ignored The first valid block identification code is one and refers to the first block of six words to be read or written The module and the processor constantly monitor input and output images How does either one know when a new block of data is available Recognizing a change in the header information of the image word 0 solves the problem For example ProSoft Technology Inc November 18 2004 MVI94 MBM Modbus Master Serial Communications Flex I O Serial Communications Module Page 15 of 73 MVI94 MBM DATA TRANSFER Flex I O Serial Communications Mod
37. aded to the module for each application An example file MVI MBM TXT is shipped with the module and should be used as a starting point for configuration Use any text editor you are familiar with to edit the data in the file When you have completed editing the file download it to the module using the terminal emulation software provided by ProSoft Technology Inc A different file can be used for each application The text file is separated into two sections with topic header names enclosed in the characters The sections present in the file are as follows Section Description MODBUS MASTER Configuration of the module database backplane data transfer and master port COMMANDS Command list data for the Modbus master port After each section header the file contains a set of parameters Unique labels are used under each section to specify a parameter Each label in the file must be entered exactly as shown in the file for the parameter to be identified by the program If the module is not considering a parameter check the label for the data item Each parameter s value is separated from the label with the character This character is used by the program to delimit the position in the data record where to start reading data All data for a parameter must be placed after the character For numeric parameter values any text located after the value will not be used There must be at least on space character between the en
38. anty Policy ProSoft Technology Inc Hereinafter referred to as ProSoft warrants that the Product shall conform to and perform in accordance with published technical specifications and the accompanying written materials and shall be free of defects in materials and workmanship for the period of time herein indicated such warranty period commencing upon receipt of the Product This warranty is limited to the repair and or replacement at ProSoft s election of defective or non conforming Product and ProSoft shall not be responsible for the failure of the Product to perform specified functions or any other non conformance caused by or attributable to a any misapplication of misuse of the Product b failure of Customer to adhere to any of ProSoft s specifications or instructions c neglect of abuse of or accident to the Product or d any associated or complementary equipment or software not furnished by ProSoft Limited warranty service may be obtained by delivering the Product to ProSoft and providing proof of purchase or receipt date Customer agrees to insure the Product or assume the risk of loss or damage in transit to prepay shipping charges to ProSoft and to use the original shipping container or equivalent Contact ProSoft Customer Service for further information Limitation of Liability EXCEPT AS EXPRESSLY PROVIDED HEREIN PROSOFT MAKES NO WARRANT OF ANY KIND EXPRESSED OR IMPLIED WITH RESPECT TO ANY EQUIPMENT PARTS
39. c Port 2 Config RXBuf Max Characters N27 m Properties Usage 04 CNET CFG 306 DATA 307 DATA 5 8 Force Files oo 83 0 Bi E E rd gt SAMPL Send MVI MAIN 7 Val XREF 1 00000 APP READ start ect i Mvis4_GSC_User li Calculator t RSLogix 5 Mv 5 50 9 4 Initialization Values The data registers in N27 20 through N27 29 are preset in our example and should never be changed by the user Important Do not alter the values in N27 20 to N27 29 If creating a new data file copy these values to the new data file If this is not performed the program will not interface correctly with the MVI94 GSC module 9 5 Using the Example Program The key to successful implementation of the example ladder program is 1 Understanding what to edit in File 2 to match the required application 2 Using the code in Program files 20 24 without alterations ProSoft Technology Inc Page 43 of 73 November 18 2004 MVI94 MBM PLC Code Samples Flex I O Serial Communications Module Calling the MVI94 GSC Driver Logic The SBR 20 should be called once per scan by the ladder program In our example we have placed the call to SBR 20 in file 2 JSR 0000 Jump To Subroutine Prog File Number Transmitting Data out Po
40. c can examine word 2 of the input image to determine the number of commands placed in the command queue Any errors associated with the command can be viewed in the command list error table 4 3 WARM BOOT BLOCK 9998 This block does not contain any data When the processor places a value of 9998 in word 0 of the output image the module will perform a warm start This involves clearing the configuration and all program status data Finally the program will load in the configuration information from the Flash ROM and begin running There is no positive response to this message other than the status data being set to zero and the block polling starting over Page 20 of 73 ProSoft Technology Inc November 18 2004 DATA TRANSFER MVI94 MBM Modbus Master Serial Communications Flex I O Serial Communications Module 4 4 COLD BOOT BLOCK 9999 This block does not contain any data When the processor places a value of 9999 in word 0 of the output image the module will perform a hardware restart This will cause the module to reboot and reload the program There is no positive response to this message other than the status data being set to zero and the block polling starting over ProSoft Technology Inc Page 21 of 73 November 18 2004 MVI94 MBM DATA TRANSFER Flex I O Serial Communications Module Page 22 of 73 ProSoft Technology Inc November 18 2004 Master Command List MVI94 MBM Modbus Master Serial Communications
41. ced The first word in the register location defined contains the status error code for the first command in the port s command list Each successive word in the command error list is associated with the next command in the list Therefore the size of the data area is dependent upon the number of commands defined Refer to the following Error Codes section to interpret the status error codes present in the data area SLAVE STATUS LIST The slave status list is used to view the communication status of each slave device on a master port Slaves attached to the master port can have one of the following states ProSoft Technology Inc Page 35 of 73 November 18 2004 MVI94 MBM Troubleshooting Flex I O Serial Communications Module 7 3 7 3 1 7 3 2 0 The slave is inactive and not defined in the command list for the master port 1 The slave is actively being polled or controlled by the master port and communication is successful 2 The master port has failed to communicate with the slave device Communication with the slave is suspended for a user defined period based on the scanning of the command list Slaves are defined to the system when the module initializes the master command list Each slave defined will be set to a state of 1 in this initial step If the master port fails to communicate with a slave device retry count expired on a command the master will set the state of the slave to a value of 2 in th
42. cumentation of each Modbus slave device on the network for their register and digital point Page 30 of 73 ProSoft Technology Inc November 18 2004 MVI Module Configuration 194 Modbus Master Serial Communications Flex I O Serial Communications Module address assignments For example in an Omni Flow Computer points 1901 to 1936 are digital points used for alarm flags These points can be read using Modbus function code 1 and placed in the virtual Modbus database of the module ProSoft Technology Inc Page 31 of 73 November 18 2004 MVI94 MBM MVI Module Configuration Flex I O Serial Communications Module Page 32 of 73 ProSoft Technology Inc November 18 2004 Troubleshooting MVI94 MBM Modbus Master Serial Communications Flex I O Serial Communications Module 7 Troubleshooting The MVI module is designed to allow devices with a serial port to be accessed on the Flex I O platform The MVI94 GSC provides simple serial communications without requiring programming of the MVI module in C This document assumes that the MVI module has been configured to run the GSC application on startup this is done at the factory 7 1 LED Indicators The module has 5 LEDs that are visible from the front of the module The following table details the function of these LEDs MVI94 GSC LED Descriptions COLOR LEGEND DESCRIPTION Green PRT1 PRT1 Activity Configuration Port This LED is use
43. d If the configuration is successfully transferred from the module a file with the name ProSoft Technology Inc Page 67 of 73 November 18 2004 MVI94 MBM Appendix E Configuration Debug Port Operation Flex I O Serial Communications Module entered will be created on the PC The file generated will be formatted as a standard configuration text file for the module V z VERSION INFORMATION This menu option is used to display the version information for the software running on the module This option should be used before calling ProSoft for support Record the information and have it handy when calling for technical support After selecting the option the following information will be displayed VERSION INFORMATION MUI94 MBM MODBUS COMMUNICATION MODULE 1999 ProSoft Technology Inc PRODUCT NAME CODE MBM SOFTWARE REVISION LEVEL 1 86 OPERATING SYSTEM REVISION 6166 RUN NUMBER 3661 API LIBRARY VERSION 61 64 BP DRIVER VERSION 81 85 VENDOR ID 222 DEVICE TYPE 8 PRODUCT CODE 232 HARDWARE VERSION DATE 81 83 09 03 1999 SERIAL NUMBER 816199927 PRODUCT 1794AU MUI DOS W WARM BOOT MODULE This menu option is used to force the module software to read the current configuration information stored in the module s Flash ROM The module will automatically perform this operation each time a new configuration is downloaded to the module Therefore this option is rarely used One
44. d of the parameter value and the following text An example of a parameter entry is given below Baud Rate 38400 Baud rate for port 110 to 115K The parameter label is Baud Rate and the parameter value is 38400 The characters after the parameter value are ignored and are used for internal documentation of the configuration file The table below displays the baud rate values expected by the program Because the baud rate parameter can potentially exceed the value for a word value high baud rates must be shortened ProSoft Technology Inc Page 25 of 73 November 18 2004 MVI94 MBM MVI Module Configuration Flex I O Serial Communications Module Baud Rate Values Parameter Value Rate 600 60 1200 12 1200 Any record that begins with the character is considered to be a comment record These records can be placed anywhere in the file as long as the character is found in the first column of the line These lines are ignored in the file and can be used to provide documentation within the configuration file Liberal use of comments within the file can ease the use and interpretation of the data in the file A description of each section and its contained data items parameters is given below 6 1 MODBUS MASTER Section The MODBUS MASTER section of the configuration file is used to set the Modbus master port communication parameters to define the virtual Modbus database to define the command list sp
45. d queue for an available position If there is space in the command queue the module will construct a command and place it in the queue The module will respond with the following block in the input image after processing request BLOCK 1000 TO 1255 RESPONSE the processor identification code 2 This word contains the result of the event request If a value of one is present the command was issued If a value of zero is present no room was found in the command queue The ladder logic can examine word 2 of the input image to determine if the module was able to execute the command If invalid parameters are set in the event request block the command may still be placed in the queue and there will be no error indication 4 2 COMMANDS BLOCKS 2001 TO 2006 These control blocks are sent from the processor to the module to execute one or more commands in the module s command list out the Modbus master port Commands selected for execution need not have the Enable Code set 1 or 2 but must be valid commands The format for this block is shown below ProSoft Technology Inc Page 19 of 73 November 18 2004 MVI94 MBM DATA TRANSFER Flex I O Serial Communications Module BLOCK 2001 TO 2006 STRUCTURE WORD _ DESCRIPTION 0 Command queue block identification code of 2001 to 2006 1 This word contains the index in the command list for the first command to be entered into the command queue 2 This word contains the inde
46. d to indicate data transmit and receive activity on the configuration port When the TXD or RXD pin is active on the port the LED will be illuminated green When the port is not active the LED will be in the off state Green PRT2 PRT2 Activity Application Port This LED is used to indicate data transmit and receive activity on the Application Port Modbus DF1 etc When the TXD or pin is active on the port the LED will be illuminated green When the port is not active the LED will be in the off state Red Green STS Module Status This LED is used to indicate the health of the module When power is applied to the module the LED will be illuminated Green If the LED is green the program is working correctly and the user configuration is being used Red If the LED is red the program is halted Try restarting the module by cycling power This should cause the module to return to its normal state Yellow U1 Backplane Activity This LED is used to indicate backplane data transfer operation When the module is successfully writing data to the FLEX I O backplane the LED will be in the off state When the module is reading a new block of data from the FLEX I O backplane the LED will be in the on state amber During normal operation of the module this LED should turn on and off at a very rapid rate If the LED never turns on check your ladder logic to be certain the data transfer is set up correctly
47. ds are issued out the master port from a command list These commands gather or control data in the Modbus slave devices The diagram below displays the relationships discussed above Modbus Modbus Databases Flex I O Flex PLC Slaves Master i i Bus Processor 1 1 Write to Input Virtual Modbus mage oabus Pe Read filom 1 0 1 Read for Ouput Image Image 1 Modbus Write Function lt gt List Write for Modbus Read Function Read from Input Irhage Response Slave Device ko Read Write to Output Image Request ProSoft Technology Inc Page 13 of 73 November 18 2004 MVI94 MBM Virtual Modbus Database Concept Flex I O Serial Communications Module Page 14 of 73 ProSoft Technology Inc November 18 2004 DATA TRANSFER 4 DATA TRANSFER Data is transferred over the backplane using the module s input and output images The module is configured with an eight word input image and a seven word output image The module and the Flex processor use these images to page data and commands The input image is set written by the module and is read by the Flex processor The output image is set written by the Flex processor and read by the module The diagram below displays this relationship DATA TRANSFER OPERATION FLEX PROCESSOR MVI94 MBM MODULE VIRTUAL DATA OUTPUT INPUT MODBUS TABLE IMAGE IMAGE DATABASE
48. e block number contains the slave module to be used with the command For example to use slave device 5 attached to the master port the block number 1005 should be used 2001 to These blocks are used to transfer a list of 2006 commands to execute from a device the backplane to the module The number of commands to be considerd is coded in the block number For example to add three commands to the command queue use block 2003 9998 Warm boot the module When the module receives this block it will reset all program values using the configuration data 9999 Cold boot the module When the module receives this block it will perform a hardware restart Data is transferred between the processor and the module using the block identification codes of 1 to 666 The other block codes are used to control the module from the processors ladder logic They are implemented when the ladder logic needs to control the module In order to use one of the blocks the ladder logic inserts the data and code in the output image of the module The data should be set before the code is placed in the block This operation should be performed after the receipt of a new write block from the module A discussion of each set of codes is given below EVENTS BLOCKS 1000 TO 1255 These control blocks are sent from the processor to the module to execute a Modbus command out the Modbus master port It should be used for commands that are not f
49. e status table This suspends communication with the slave device for a user specified scan count Error Delay Count value in the configuration Each time a command in the list is scanned that has the address of a suspended slave the delay counter value will be decremented When the value reaches zero the slave state will be set to one This will enable polling of the slave The slave status list can only be viewed using the module s configuration debug port The O option on the main menu is used to display the status of all 256 slave units ERROR CODES The module error codes are listed in this section Error codes are separated into Modbus error codes and module error codes MODBUS ERROR CODES These error codes are returned to the module from Modbus slave devices attached to the master port These codes are the standard Modbus errors The error codes are listed in the table below MODBUS ERRORS Illegal Function Illegal Data Address Illegal Data Value 4 Failure in Associated Device Acknowledge 6 Busy Rejected Message MODULE ERROR CODES Module error codes are generated by the module s program These errors can result due to configuration or communication problems These errors are stored in the Modbus master command list error table A word is allocated for each command in the memory area The table below lists the errors returned by the module for communication errors Page 36 of 73 ProSoft Technology Inc
50. e used on the Modbus master port 3 Fill in the blank configuration form for application using the data sets defined in steps one and two 4 Edit the configuration text file MVI94MBM CFG using Notepad or some other text editor to reflect the desired data from the configuration form and save the file under a different name This example CFG file is shipped in the module s memory and is available off the ftp site 5 Connect the module to a 24 VDC power source 6 Connect the MVI94 MBM module s Configuration Debug Port to a computer containing ProSoft s terminal emulation program PS_TERM EXE with a null modem cable 7 Select the directory containing the correct configuration file on the computer 8 Start the terminal emulation program on the computer 9 Press the key on the terminal to be certain the module is communicating with the computer and that the main menu mode is current 10 Press the R key on the terminal emulator to select the receive option Immediately press the Y key 11 Press the ALT F3 key on the terminal emulator and enter name of the configuration file to load into the module MVI94MBM CFG if using example file The configuration will be downloaded and the module will restart using the new configuration 12 Connect the module s Modbus master port to the Modbus network If everything is configured correctly and the cable connections are correct communications should be present on the master port
51. ecifications for the master port and to specify the Flex backplane data transfer parameters The table below lists the parameters defined in this section Section Item Range_ Description MODBUS MASTER Configuration header for Master Modbus Port Module Name Up to 80 of the module for use on reports Use this chars parameter to identify your module in your system Maximum Register 1 to 3996 This parameter defines the maximum register in the virtual Modbus Database You should size the database for your application leaving room for expansion in the future Requests for registers outside of the range selected will be returned with an error message Float Flag Y or N This flag specifies if the floating point data access functionality is to be implemented If the float flag is set to Y Modbus functions 3 6 and 16 will interpret floating point values for registers as specified by the two following parameters Float Start 0 to 32767 This parameter defines the first register of floating point data All requests with register values greater than or equal to this value will be considered floating point data requests This parameter is only used if the Float Flag is enabled For example if a value of 7000 is entered all requests for registers 7000 and above will be considered as floating point data Page 26 of 73 ProSoft Technology Inc November 18 2004 MVI Module Configuration 194 Modbus Mas
52. eout period in 1 ms increments This is the time that a port configured as a master will wait before re transmitting a command if no response is received from the addressed slave The value is set depending upon the communication network used and the expected response time of the slowest device on the network Retry Count 0 to 10 This parameter specifies the number of times a command will be retried if it fails ProSoft Technology Inc Page 27 of 73 November 18 2004 MVI94 MBM Flex I O Serial Communications Module 6 2 Error Delay Count 0 to 65535 This parameter specifies the number of polls to skip on the slave before trying to re establish communications After the slave fails to respond the master will skip commands to be sent to the slave the number of times entered in this parameter Modus datanase owe over fe backplane internal Modbus database to write over the backplane Write Register Count 12 to 3996 This parameter specifies the number registers in the internal Modbus database to write over the backplane This parameter is used to compute the number of blocks to transfer from the module to the backplane The number of blocks must be gt 2 for proper backplane data transfer Read Start Register 0 to 3995 This parameter specifies the starting register in the internal Modbus database to fill with data read over the backplane Read Register Count 12 to 3996 This parameter specifies
53. eter defines the first register of floating point data All requests with register values greater than or equal to this value will be considered floating point data requests This parameter is only used if the Float Flag Y or This flag specifies if the floating point data access functionality is to be implemented If the float flag is set to Y Modbus functions 3 6 and 16 will interpret floating is enabled For example if a value of 7000 is entered all requests for registers 7000 and above will be considered as floating point data Error Status Block Pointer 1 to 3995 This value represents the relative starting position in the module s internal Modbus database where the Error Status data will be stored The table can be placed anywhere in the module s data space The content of the Error Status table is updated at the frequency defined in the parameter below If a value of 1 is set for the parameter the data will not be placed in the database Error Status Frequency 0 to 65535 This parameter specifies the number of program cycles between each update of the Error Status Block data in the module If the parameter is set to a value of 0 the data is never updated Float Offset 0 to 3995 This parameter defines the start register for floating point data in the internal database This parameter is only used if the Float Flag is enabled For example if the Float Offset value is set to 3000 and the float start parameter is set to
54. ge of data displayed can be changed by using the N or P keys The format of the data can be changed using the D and H keys To return to the main menu mode press the M key O SLAVE STATUS LIST This menu option is used to display the slave status list for the slaves on the master port Each value displayed is associated with a slave node address The first value displayed is associated with node address 0 and the last value is associated with node address 255 After selecting the option the following display will be shown Page 66 of 73 ProSoft Technology Inc November 18 2004 Appendix E Configuration Debug Port Operation MVI94 MBM Flex I O Serial Communications Module SLAVE STATUS LIST C ca 02 02 02 02 02 02 02 02 02 02 02 eoooooooceceoe eoecoeooece ee ec amp e 02 02 02 02 02 02 oo 02 e 02020202 02 02 02 02 02 02 02 020200200202 0 02 e 02 02 02 02 02 02 02 ec 02020202 02 02 02 02 02 02 02 eSeoeooeocece oo 02 eSeeooeoceceoeceecs Values in the list have the following definitions 0 inactive 1 active and 2 in communication failure The master port will only poll slaves with a status value of 1 R RECEIVE CONFIGURATION
55. he module into the base set the modules interface jumpers located on the bottom of the module The diagrams below show the pin assignments for the three interfaces 8 1 RS 232 Null Modem Connection Hardware Handshaking This type of connection is used when the device connected to the module requires hardware handshaking control and monitoring of modem signal lines PRT 2 PC or DB 9 Pin Male Device TxD 3 RxD RxD 2 TxD RTS CTS CTS 8 RTS GND 5 GND DTR 4 DSR DCD 8 2 5 232 Null Modem Connection No Hardware Handshaking This type of connection can be used to connect the module to a computer or field device communication port PRT 2 PC or Device DB 9 Pin Male TxD RxD RxD TxD RTS RTS CTS jumper must be installed CTS if CTS line monitoring enabled GND GND DTR NOTE If the port is configured with the Use CTS Line set to Y then a jumper is required between the RTS and the CTS line on the module connection ProSoft Technology Inc Page 39 of 73 November 18 2004 MVI94 MBM Serial Port Connections Flex I O Serial Communications Module 8 3 RS 232 Modem Connection This type of connection is required between the module and a modem or other communication device PRT 2 Modem or other DB 9 Pin Male Comm Device TxD 3 TxD RxD 2 RxD RTS RTS CTS 8 CTS GND 5 GND DTR 4 DTR The Use CTS Line parameter for the port configuration should be set to Y
56. idge Module 5 PLC SMOC 1794 5 1756 CNB m Adapter 15 i Ready 100 Notes from our experiences When setting up the 194 and the 1794 ACN15 adapter we found a few configuration items to be somewhat critical to the success of our test setup Of particular importance were 1794 CAN15 Input and Output File Size In the 1794 ACN15 adapter configuration it was important to allocate one 1 input one 1 output word per MV194 to the adapter Note If the MVI94 does not show up in the RSNetWorx Module Type selection list simply use the 1794 1797 Generic selection MVI94 MBM Appendix A PLC5 ControlNet Configuration Flex I O Serial Communications Module 170 Module 1794 1797 Generic i Y Node 1 PLC 5 ControlNet Configuration Hending Fencing Page 50 of 73 ProSoft Technology Inc November 18 2004 Appendix A PLC5 ControlNet Configuration MVI94 MBM Flex I O Serial Communications Module RSLogix 5 Mvi94asb rsp el xl File Edi View Search Comms Tools Window Help psu Eee NN venom Dp Driver AB KT Node 1o 2 user TimeriCounter Input Output Compare 94 5 58 in Prograi N21 OUTPUT ES EIS 5 E N22 P1 RxBUF N23 P1_TXBUF N24 P2_RXBUF 5 P2_TXBUF N27 GSC_CNTL 128 GSC_TMRS ct2
57. ite and read block identification codes are set to one The last block read variable is set to zero 2 The program copies the first six word block of the virtual Modbus database starting at the user defined Write Start Register to the input image words 2 to T It then sets the current read block code in word 1 of the input image To trigger the write operation the program places the current write block code into word 0 of the input image 3 The Flex processor recognizes a new value in word 0 of the input image based on the last write block code not equal to write block code in its ladder logic The ladder logic computes the offset into the file based on the following formula Page 16 of 73 ProSoft Technology Inc November 18 2004 DATA TRANSFER MVI94 MBM Modbus Master Serial Communications Flex I O Serial Communications Module write file offset write block code 1 6 The new data contained in the input image words 2 to 7 is copied to the offset in the processor s user data file The last write block code storage register in the processor is updated with the new write block code NOTE If the data area transferred from the module exceeds the size of a single user file in the Flex processor logic will be required to handle multiple files 4 The ladder logic next examines the value of the read block code and computes the offset into the read data file as follows read file offset read block code 1 6
58. lave is to be ordered differently than received from the slave device This parameter is helpful when dealing with floating point or other multi register values as there is no standard method of storage of these data types in slave devices This parameter can be set to order the register data received in an order useful by other applications The table below defines the values and their associated operations mE EN Words amp WIVES The words are swapped and then the bytes in each word are swapped 3 jBytes The bytes in each word are swapped 6 2 6 Node This parameter is used to specify the Modbus slave node address on the network to be considered Values of 1 to 255 are permitted Most Modbus devices only accept an address in the range of 1 to 247 so be careful If the value is set to zero the command will be a broadcast message on the network The Modbus protocol permits broadcast commands for write operations Do not use this node address for read operations 6 2 7 Function Code This parameter specifies the Modbus function to be executed by the command These function codes are defined in the Modbus protocol The table below defines the purpose of each function supported by the module MODBUS FUNCTION LIST 6 Single Register Write 6 2 8 Device Modbus Address This parameter specifies the starting Modbus register or digital point address to be considered by the command in the Modbus slave device Refer to the do
59. le MODBUS DATABASE VIEW MENU Display Menu 8 3 Register Pages 8 3000 Show Again 5 Pages P Previous Page Skip 5 Pages N Next Page D Decimal Display H Hexadecimal Display F Float Display A ASCII Display Menu Select an option by pressing the associated key To display the current database page selected press the S key A display similar to the one shown below will appear MODBUS DATABASE DISPLAY 3666 TO 3699 DECIMAL 3188 8 4 16 8 7 6 8269 11825 13872 12592 12336 12339 12592 13198 13104 6 16224 2383 The page of data displayed can be changed by using the N or P keys The format of the data can be changed using the D H F and A keys To return to the main menu mode press the key E COMMAND ERRS After selecting the option the following text will be displayed Cmd Err Menu Selected The message indicates that the command error list menu mode is selected Options available in this mode are displayed by pressing the key on the terminal emulator If the key is pressed the following will be displayed COMMAND ERROR LIST MENU Display Menu S Show Again Back 2 Pages P Previous Page Skip 2 Pages N Next Page D Decimal Display H Hexadecimal Display Menu Select an option by pressing the associated key To display the current error list page selected press the S key A display similar to the one shown below will appear
60. n Debug Port Operation MVI94 MBM Flex I O Serial Communications Module Appendix E Configuration Debug Port Operation This section contains information on how to use the Configuration Debug Port This port provides the means to transmit or receive configuration data view database information in the module and view configuration data Use of this port can aid in locating problems that may exist in the user configuration attached devices and the command list To communicate with the Configuration Debug Port PRT 1 a null modem cable is required along with terminal emulation software You should use the software provided by ProSoft as it is required for transferring the configuration file Connect the null modem cable to the Configuration Debug Port and start the software Communication parameters used for the port are as follows 19 200 baud no parity 8 data bits 1 stop bit and no hardware handshaking After the terminal emulation software is loaded press the key to display the menu If the main menu is not displayed press the M key and then press the key If the menu is not displayed there may be a problem with the cable connection between the module and the terminal emulator Check all connections and the communication parameters used by the terminal emulator Each option available on the Configuration Debug Port is discussed below z DISPLAY MENU This option is used to display the menu options available in
61. nication failure and set the error delay counter to the user specified value Each time the module encounters this slave in the command list the counter will be decremented When the value reaches zero the slave will be placed in an active status This facility can improve communication throughput on the Modbus network Commands can be activated in the module under processor control This feature permits the processor to issue a command in the command list under program control When a command is activated it will be placed in the command queue for immediate execution Normal command polling will begin after the command queue is completely processed Additionally the processor can send a command directly to any slave attached to the Modbus master port This feature can be used for commands that are not issued on a regular basis and are not in the command list Commands submitted as events are placed in the command queue for immediate execution They will preempt normal operation of the poll list When the command queue is completely empty normal command polling will resume The module provides a Configuration Debug port for use with an external computer executing a terminal emulation program The terminal emulation program provided with the module permits uploading and downloading of the configuration information required by the module Additionally the Configuration Debug port provides a view into the virtual Modbus database communication sta
62. nology Inc November 18 2004 MVI Module Configuration MVI94 MBM Modbus Master Serial Communications Flex I O Serial Communications Module Module Information Device Information MODBUS COMMAND STRUCTURE ee ee Device Modbus 1 Internal Poll Interval Swap Function Code Address Time Count Code Code Address Code Register Seconds 0 Node BH i Code _ Register Seconds 0 Node 4 c Code Register Seconds Count 0 5 Register Code Register Seconds Count 0 Node 6 Register i i i i node destination address Each parameter is discussed below 6 2 1 Enable Code This field is used to define whether or not the command is to be executed and under what conditions If the parameter is set to 0 the command is disabled and will not be executed in the normal polling sequence The command can be executed under the control of the PLC processor through the use of a Command Control block Setting the parameter to a value of 1 for the command causes the command to be executed each scan of the command list if the Poll Interval Time is set to zero If the Poll Interval time is set the command will be executed when the interval timer expires If the parameter is set to 2 the command will execute only if the internal data associated with the command changes This value is valid only for write commands 6 2 2 Inte
63. nu option is used to return to the main menu mode B BACKPLANE TRANSFER STATISTICS This menu option is used to display the statistics for the backplane data transfer operation Data displayed after selecting the option is shown below BACKPLANE TRANSFER STATISTICS Total Read Blocks 30713 Read Register Start Total Write Blocks 2875 Read Register Count Total Parsed Blocks Read Block Count Total Event Blocks 5 Write Register Start Total Command Blocks Write Register Count Total Block Errors Write Block Count C MODBUS CONFIGURATION This menu option is used to display the module name and the configuration of the internal Modbus database Data displayed after selecting the option is shown below MODBUS CONFIGURATION TEST MUI94 MBM MODULE Maximum Register 3996 Floating point Flag N Floating point Start 7666 Floating point Offset 1588 Err Stat Blk Pointer 3666 Err Stat Blk Freq 1888 Protocol Selected 8 Modbus RTU D MODBUS DATABASE VIEW After selecting the option the following text will be displayed Modbus DB Menu Selected This indicates that the database menu mode is selected Options available in this mode are displayed by pressing the key on the terminal emulator If the key is pressed the following will be displayed Page 64 of 73 ProSoft Technology Inc November 18 2004 Appendix E Configuration Debug Port Operation MVI94 MBM Flex I O Serial Communications Modu
64. ontrol The PLC or other controlling processor which communicates with the MVI Processor module directly over the backplane or via a network or remote IO adapter Input image Refers to a contiguous block of data that is written by the module application and read by the control processor The input image is read by the control processor once each scan Also called the input file Output Image Refers to a contiguous block of data that is written by the control processor and read by the module application The output image is written by the control processor once each scan only in Run mode Also called the output file Page 8 of 73 ProSoft Technology Inc November 18 2004 Introduction MVI94 MBM Modbus Master Serial Communications Flex I O Serial Communications Module 1 3 1 4 MVI94 Functional Features Hardware Port 1 RS 232 only Port 2 RS 232 422 485 Jumper configurable Software Bi directional full duplex serial data transfer e Each serial port independently configurable for baud rate word length parity stop bits handshaking and data termination condition e Supports baud rates of 110 150 300 600 1200 2400 4800 9600 19200 28800 38400 57600 and 115200 e Three data termination conditions available termination character data length and data timeout e Supports transmitted or received data up to 1023 bytes in length e LED diagnostic indicators aid debugging e Error messages help deb
65. ound in the command list Use blocks 2001 to 2006 to execute commands in the list under processor control The format for this block is shown below Page 18 of 73 ProSoft Technology Inc November 18 2004 DATA TRANSFER MVI94 MBM Modbus Master Serial Communications Flex I O Serial Communications Module BLOCK 1000 TO 1255 STRUCTURE WORD 0 This word contains the slave device address on the Modbus network to be considered with the command This value is added 0 to 255 to the value of 1000 This generates a block identification code of 1000 to 1255 1 This word contains the internal Modbus address in the module to be used with the command 2 This word contains the count parameter that determines the number of digital points or registers to associate with the command 3 The parameter specifies the swap type for the data This function is only valid for function code 3 4 5 This word contains the Modbus address in the slave device to be associated with the command 6 This word contains the Modbus function code to be used with the command The data contained in the block is used by the module to construct a valid Modbus command and defines what data in the virtual Modbus database to use with the command These parameters are the same as defined for the command list Refer to the Commands section of the documentation for further information When the module receives a block 1000 to 1255 it will check the comman
66. possible use of this option is to reset all the program statistics After the option is selected and the configuration is complete all program counter values are reset to zero This can be useful when monitoring a port s statistics 1 MODBUS PORT STATUS This menu option is used to display the communication statistics for the Modbus master port After selecting the option the following will be displayed Page 68 of 73 ProSoft Technology Inc November 18 2004 Appendix E Configuration Debug Port Operation MVI94 MBM Flex I O Serial Communications Module HODBUS MASTER STATUS Retries 8 Cur ComState 6 Number of Command Requests Number of Cmd Responses Number of Command Errors Number of Requests Number of Responses Number of Errors Received Number of Errors Sent Program Scan Counter Use this information to aid in debugging Modbus slave port communication problems 6 MODBUS PORT CFG This menu option is used to display the Modbus master port configuration information After selecting the option the following will be displayed CONFIGURATION OF MODBUS MASTER Maximum Registers 3996 Floating point Data Flag Start 7666 Offset 1566 Error Status Table Offset 3666 Freq 1888 Communication Parameters Protocol 6 Modbus RTU Baud 38400 Parity NONE Databits 8 Stopbits 1 RTS On 6 RTS Off 8 Use CTS Line N Command Parameters Commands 7 Min Dly 6 Cmd Offs 1
67. rnal Address This field specifies the virtual Modbus database register to be associated with the command If the command is a read function the data read from the slave device will be placed starting at the register value entered in this field If the command is a write function the data written to the slave device will be sourced from the address specified Register addresses specified for commands must reside in the range specified by the Maximum Register parameter under the MODBUS MASTER section 6 2 3 Poll Interval Time This parameter specifies the minimum interval to execute continuous commands Enable code of 1 The parameter is entered in units of seconds Therefore if a value of 10 is entered for a command the command will execute no more frequently than every 10 seconds 6 2 4 Count This parameter specifies the number of registers or digital points to be associated with the command Functions 5 and 6 ignore this field as they only apply to a single data point For functions 1 2 and 15 this parameter sets the number of digital points ProSoft Technology Inc Page 29 of 73 November 18 2004 MVI94 MBM MVI Module Configuration Flex I O Serial Communications Module inputs or coils to be associated with the command For functions 3 4 and 16 this parameter sets the number of registers to be associated with the command 6 2 5 Swap Code This parameter is used to define if the data received from the Modbus s
68. rt 1 The transfer of data to be transmitted out a port on the 194 is coordinated by two status flags and a call to SBR 24 The following rung shows an example of some ladder logic which sets up the P1_TXBUF file and then makes a call to SBR 24 Note that the parameters passed to SBR24 are a function of the Port the data is to be transmitted out of JSR Jump To Subroutine Prog File Number U 24 Input Parameter N23 1 Input Parameter 5921 The first Input Parameter is the length of the buffer to be transmitted in bytes This value is already setup in our example ladder program therefore we pass the value in N23 1 Message count field The second Input Parameter is the Message Signature for the port to be used Port 1 5921 dec 1721 Hex Port 2 5922 dec 1722 Hex Page 44 of 73 ProSoft Technology Inc November 18 2004 PLC Code Samples MVI94 MBM Modbus Master Serial Communications Flex I O Serial Communications Module N2735 es 0001 p flee Greater Than A gt B 1 N2735 Source 83 0 0000000000000000 lt Source B 0 0 Port TX Buffer 0000 Mov Move Source 5921 5921 Dest N23 0 5905 Mov Move Source 2 2 Dest N23 1 lt B30 OP JE Copy File 0 Source 23 100 amp 4N23 N231 Length 9 PT Compute Dest N23 1 Expression N23 1 9 Dest N23 1 Expression N23 1 9 423 120 N23 N23 1 Length 9
69. s manual is subject to change without notice and does not represent a commitment on the part of ProSoft Technology Inc Improvements and or changes in this manual or the product may be made at any time These changes will be made periodically to correct technical inaccuracies or typographical errors ProSoft Technology Inc 1675 Chester Avenue 274 Floor Bakersfield CA 93301 661 716 5100 661 716 5101 Fax www prosoft technology com Copyright ProSoft Technology Inc 2000 2004 All Rights Reserved MVI94 MBM User Manual November 18 2004 Table of Contents MVI94 MBM Modbus Master Serial Communications Flex I O Serial Communications Module Table of Contents PLEASE READ THIS 222828 DR uc 2 T INTRODUCTION e saatii eaaa aoaaa a aeaa a Ea EdE ded iaae Sa iaaeaie 7 1 1 Reference and RESOUICES sssssnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn 8 1 2 aan amaA 8 1 3 MVI94 Functional nnana nannaa na 9 1 4 Configuration 9 2 QUICK START GUIDE ZA DOO SN
70. ter Serial Communications Flex I O Serial Communications Module Float Offset 0 to 3995 This parameter defines the start register for floating point data in the internal database This parameter is only used if the Float Flag is enabled For example if the Float Offset value is set to 3000 and the float start parameter is set to 7000 data requests for register 7000 will use the internal Modbus register 3000 Error Status Block 1 to 3995 This value represents the relative starting position in the Pointer module s internal Modbus database where the Error Status data will be stored The table can be placed anywhere in the module s data space The content of the Error Status table is updated at the frequency defined in the parameter below If a value of 1 is set for the parameter the data will not be placed in the database Error Status Frequency 0 to 65535 This parameter specifies the number of program cycles between each update of the Error Status Block data in the module If the parameter is set to a value of 0 the data is never updated or 1 This parameter specifies the Modbus protocol to be used on the port Valid Protocols 0 Modbus RTU and 1 Modbus ASCII NE Rate to This is the baud rate to be used on the port Enter the 115K baud rate as a value For example to select 19K baud enter 19200 Valid entry for this field include 110 150 300 600 1200 2400 4800 9600 19200 28800 38400 57600 and 1
71. the current menu mode If the menu mode is set to main the following will be displayed HUI94 HMBM MODBUS COMMUNICATION MODULE MENU Display Menu fi Data Analyzer B Backplane Transfer Statistics C Modbus Configuration D Modbus Database View E Command Errs L Command List O Slave Status List R Receive Configuration from Remote S Send Configuration to Remote U Uersion Information W Warm Boot Module 1 Modbus Port Status 6 Modbus Port Cfg Esc Cold Boot Module Select any of the options displayed by pressing the single key shown in the menu on the computer running the terminal emulation software ProSoft Technology Inc Page 61 of 73 November 18 2004 MVI94 MBM Appendix E Configuration Debug Port Operation Flex I O Serial Communications Module A z Data Analyzer Selection of this menu option places the program in analyzer menu mode This mode of operation is used to display Modbus messages generated and received by the module To view the menu options available in this mode press the key and the following menu will be displayed DATA ANALYZER VIEW Display Menu 5 1 mSec Ticks 6 5 mSec Ticks 7 16 mSec Ticks 8 58 mSec Ticks 9 166 mSec Ticks 8 5 Ticks Format A ASCII Format B Start S Stop Menu Port MODBUS MASTER PORT Format HEX Tick 18 This tool is extremely useful in determining the operation of the module and nodes on the network of each port
72. the data in the command has not changed since the command was last issued the command will not be executed If the data in the command has changed since the command was last issued the command will be executed Use of this feature can lighten the load on the Modbus network In order to implement this feature set the enable code for the command to a value of 2 ProSoft Technology Inc Page 23 of 73 November 18 2004 MVI94 MBM Master Command List Flex I O Serial Communications Module Page 24 of 73 ProSoft Technology Inc November 18 2004 MVI Module Configuration 194 Modbus Master Serial Communications Flex I O Serial Communications Module 6 MVI Module Configuration This section of the documentation describes the configuration data required by the communication module It is important that the module be configured accurately for reliable and correct operation Appendix A of the documentation contains a configuration form that can be used to aid in configuring the module All configuration information for the module is stored in the module s Flash ROM This provides permanent storage of the information The user configures the module using a text file and then using the terminal emulation software provided with the module to download it to the module s Flash ROM The file contains the configuration for the virtual Modbus database Flex backplane data transfer master port and the command list This file is downlo
73. tion 3 2 enter the appropriate values in N27 2 3 4 for Port 1 and N27 12 13 14 for Port 2 Note that in addition to the Port Configuration values the RX and TX buffer files can easily be changed by changing the file pointers in N27 5 and N27 6 for Port 1 and N27 15 N27 16 for Port 2 Note that if the file pointers are changed the appropriate data files will need to created before the ladder program can be successfully run Hex Data Representation Decimal Data Representation Message Msg Baud Bits Handshake Data RX File TX File Signature Length Parity Termination Timeout Buffer Buffer Bytes Pointer Pointer Word 0 1 2 3 4 5 6 N27 0 1721 0006h 0037h 010Dh 256h 22d 23d N27 10 1722h 0006h 0037h 010Dh 256h 24d 25d Page 42 of 73 ProSoft Technology Inc November 18 2004 PLC Code Samples MVI94 MBM Modbus Master Serial Communications Flex I O Serial Communications Module RSLogix 5 Mvi94cio rsp File Edi View Search Comms Tools Window Help D 9 8 meloo OFFLINE No Forces 0 TI yt lt gt 4 45 ons Forces Disabled Disabled 2 Diver ARTA io 3Ie User X K Compare 3 6 7 8 9 r S amp R N27 0 1711 10 25 16 Jump To Subroutine 1712 10 18 Prok 100 0 100 0 1 D 000000000 0 0 lt 27 14 Symbol Columns 10 Des
74. tions Module Write Start Register 0 to 3995 This parameter specifies the starting register in the internal Modbus database to write over the backplane Write Register Count 12 to 3996 This parameter specifies the number registers in the internal Modbus database to write over the backplane This parameter is used to compute the number of blocks to transfer from the module to the backplane The number of blocks must be gt 2 for proper backplane data transfer Read Start Register 0 to 3995 This parameter specifies the starting register in the internal Modbus database to fill with data read over the backplane Read Register Count 12 to 3996 This parameter specifies the number registers in the internal Modbus database to consider from the read operations over the backplane This parameter is used to compute the number of blocks to transfer from the backplane to the module The number of blocks must be gt 2 for proper backplane data transfer ProSoft Technology Inc Page 57 of 73 November 18 2004 MVI94 MBM Appendix C Modbus Master Config Worksheet Flex I O Serial Communications Module Module Information DUNS Device Information MODBUS COMMAND ENTRY FORM 245 cles dh 1389 2 40 282 Enable Internal Poll Interval Swap Function Device Modbus Code Address Time Count Code Code Address l eee Fe eae eee ee a a pm E px pem pem
75. tistics and the configuration ProSoft Technology Inc Page 7 of 73 November 18 2004 MVI94 MBM Introduction Flex I O Serial Communications Module 1 1 1 2 Reference and Resources Several resources are available to assist with the configuration and support of the MVI94 module The following files are available from the ftp site ftp ftp prosoft technology com pub Manuals MVI94MBM CFG Example configuration file MVI94 MBM User Manual pdf This User Manual in pdf format ftp ftp prosoft technology com pub Ladder mvi94mbmc rsp Example PLC5 Ladder program ftp ftp prosoft technology com pub Utilities PSTerm DOS PSTerm ZIP DOS program for configuration WIN PSTerm ZIPWin95 98 NT program for config The following references are available for the MVI94 GSC from the ftp web site Documentation ftp prosoft technology com pub Manuals MVI94 GSC MVI94 GSC Flex I O Serial Communications Module Installation Instructions MVI94 GSC Quick Start Guide Example Ladder ftp prosoft technology com pub Ladder MVI94 GSC Example PLC 5 program as documented in Section 5 Definitions Backplane Refers to the electrical interface or bus to which IO modules connect when inserted into the rack The IO modules communicate with the control processor through the backplane BIOS Basic Input Output System The BIOS firmware initializes the module at power on and provides a DOS compatible interface to the console and ROM disk C
76. tus data PROTOCOL 0 0 1 Modbus ASCII BAUD RATE 9600 Baud rate 110 to 115 PARITY 0 0 1 Odd 2 Even 3 Mark 4 Space DATA BITS 8 5 to 8 data bits STOP BITS 1 1 or 2 stop bits RTS ON 0 millisecond RTS on delay pre data delay RTS OFF 0 millisecond RTS off delay post data delay USE CTS LINE N Monitor status of CTS line Y Yes N No COMMAND COUNT 2 Number of commands to process COMMAND DELAY 30 millisecond delay between commands ERROR BLOCK POINTER 3000 Virtual DB offset to error block RESPONSE TIMEOUT 1000 Message response timeout milliseconds RETRY COUNT 3 Message retry count ERROR DELAY COUNT 10 0 65535 delay for slave after comm error ProSoft Technology Inc Page 59 of 73 November 18 2004 MVI94 MBM Appendix D MVIS4MBM CFG Example Configuration File Flex Serial Communications Module WRITE START REGISTER Virtual DB offset where to start write WRITE REGISTER COUNT 2 60 Number of regs to write to backplane READ START REGISTER 60 Virtual DB offset where to start read READ REGISTER COUNT 60 Number of reg to read from backplane COMMANDS TYPE INTERNAL POLL SWAP SLAVE FUNCTIO DEVICE CODE ADDRESS INTERVAL COUNT CODE NODE CODE ADDRESS START 1 0 0 10 0 1 3 0 1 0 0 10 0 1 16 10 END Page 60 of 73 ProSoft Technology Inc November 18 2004 Appendix E Configuratio
77. ug invalid configurations Enhanced reliability provided by the heartbeat module is reinitialized in the event of any communications disruption between the controller and module for example if the module power is cycled off and on Configuration Jumpers One set of jumpers is used to configure the user serial port PRT2 for RS 232 RS 485 or RS 422 Note that PRT1 is RS 232 only See the Installation Instructions for more information Another jumper the Setup jumper is used to enable the console on PRT1 The Setup Jumper should be placed in the removed position when operating the MVI94 GSC module default position from factory If the Setup Jumper is installed the GSC module s executable application will be disabled and the module will boot to a DOS prompt See the Quick Start Guide for more information ProSoft Technology Inc Page 9 of 73 November 18 2004 MVI94 MBM Introduction Flex I O Serial Communications Module Page 10 of 73 ProSoft Technology Inc November 18 2004 Quick Start Guide MVI94 MBM Modbus Master Serial Communications Flex I O Serial Communications Module 2 Quick Start Guide This section describes the procedure to be followed for setting up the module for communications These steps should be followed for successful implementation of a module in a user application 1 Define the communication characteristics of the Modbus master port 2 Define the command lists to b
78. ule when the module recognizes a different value in the first word of the output image new read data is available When the processor recognizes a new value in the first word of the input image new write data is available This technique requires the storage of the previously processed data block identification code The diagram below shows the normal sequence of events for data transfer NORMAL DATA TRANSFER OPERATION FLEX PROCESSOR MVI94 MBM MODULE DATA TABLE VIRTUAL OUTPUT INPUT MODBUS IMAGE IMAGE DATABASE Program initializes the Last RD 3 block to 0 and the WR BIk and RD values to 1 Write Start Register Ladder logic recognizes a new WR BIk ID 1 in Input Image 2 It places the data the image The ladder logic next writes the read data requested to the output image and copies the RD BIk ID to word 0 of the input image rogram copies data to input image and sets header values gt The module s program recognizes the value in word 0 of the output image has changed It sets the Last RD 1 places the data in the Modbus DB Read Start Register The module now sets a new value for the WR Blk parameter and fills in the data in the input image It sets the next RD Blk and the WR values in the input image The cycle is now complete and at step 3 The steps outlined in the diagram above are discussed below 1 During program initialization the wr
79. x in the command list for the second command to be entered into the command queue 3 This word contains the index in the command list for the third command to be entered into the command queue 4 This word contains the index in the command list for the fourth command to be entered into the command queue 5 This word contains the index in the command list for the fifth command to be entered into the command queue 6 This word contains the index in the command list for the sixth command to be entered into the command queue When the module receives one of these blocks it examines word of the output image This word defines the number of commands contained in the block The command count is determined by subtracting 2000 from the word value This permits the controller to set from one to six commands into the command queue The indexes submitted in the block should be valid for the command list After the module determines the number of commands to consider it inserts each command in the command queue The response message sent from the module to the processor is as follows BLOCK 2001 TO 2006 RESPONSE WORD DESCRIPTION 0 This word contains the block 2001 to 2006 requested by the processor 1 This word contains the next read request block identification code 2 This word contains the number of commands in the block placed in the command queue 3 Not used 4 Not used 5 Not used 6 Not used The ladder logi

Download Pdf Manuals

image

Related Search

Related Contents

Desa FAS-5B User's Manual  Primefit IP1414FS-B25-P Use and Care Manual  Operating Manual - Spudnik Equipment Company  LEURS JUPONS DPASSENT. Lodyans  Operation & Installation Manual  Cadco Line Chef CMCA User's Manual  Documento senza titolo  Mode d`emploi - Support  

Copyright © All rights reserved.
Failed to retrieve file