Niobrara Research and Development Corporation voice: 1-800-235-6723 or 417-624-8918 fax: 417-624-8920 web: www.niobrara.com e-mail: techsupport@niobrara.com QUCM SLAVE APPLICATION README.TXT 23Oct2002 Note: QUCMTCPL firmware must be 27Sep2002 or later. The QUCM is rapidly evolving so be sure to upgrade the firmware in the module before loading the latest version of APP1.QCC. Most likely the QCOMPILE.EXE has been updated so be sure to use the newest version. Note: If the QUCM already has an IP Address and switch 1 is in RUN then the new firmware may be installed using qload. 1. >qload 1 qucmtcpl 206.223.51.164:503 -a 2. Wait 20 seconds after the qload if finished. 3. Qload the app1 and app2 files as normal. Firmware upload is as follows: 1. Remove the module form the rack. 2. Move the RUN/LOAD switch on the back of the module to LOAD. 3. Replace the module in the rack and apply power. 4. Only the 3 light should be on. (The Link and RX E-net lights may be on if the E-net port is connected and there is traffic.) 5. Connect the PC to QUCM Port 1 with a MM1 cable. 6. From the command line enter > fwload qucmtcps.fwl com1: or > fwload qucmtcpl.fwl com1: Be sure to have the colon after the PC's com port name. The download will only take a few minutes and will inform when finshed. 7. Remove the module from the rack and change the switch back to RUN. 8. It is a good idea to press the RESET button after a firmware change. It is recommended to use the Ethernet capabilities of QLOAD to load APP1.QCC into the QUCM. Set up the IP parameters of the module by the following method: 1. Move Switch 1 to Halt. 2. Connect the PC to QUCM Port 1 with a MM1 cable. 3. From the command line enter >zapreg32 com1:9600,e,8,1 255 -b This will start zapreg32 in Modbus RTU mode to slave address 255. Use the arrow and Page Up/Down keys to move to regsiter 46. The IP parameters are shown below for a unit with the IP = 206.223.51.150 subnet Mask = 255.255.255.0, Default Gate = 206.223.51.1, Modbus/TCP port number = 503, Telnet Port number = 24: Register Descripton Example (decimal) -------- ---------- ----------------- 46 IP MSByte 206 47 IP 223 48 IP 51 49 IP LSByte 150 50 SN Mask 255 51 SN Mask 255 52 SN Mask 255 53 SN Mask 0 54 Def. Gate 206 55 Def. Gate 223 56 Def. Gate 51 57 Def. Gate 1 58 TCP Control 7 (leave this at 7) 59 Reserved 0 60 Reserved 0 61 Reserved 0 62 TCP backstep 100 (leave this at 100) 63 Modbus Port 503 (this defaults to 502) 64 Telent Port 24 (this defaults to 23) 65 Quiet Timer 900 (leave this at 900) 66 Clients -1 (leave this at -1) 4. After entering the IP parameters, attempt to ping the module to verify the settings. > ping 206.223.51.150 5. Verify a connection to the internal Modbus/TCP server with zapreg32. > zapreg32 206.223.51.150:503 255 Should connect to the QUCM on port 503 with Destination index 255. 6. Load the APP1 file with qload. > qload 1 app1 206.223.51.150:503 -a will load the file into applicaiton 1's flash and set the program to automatically start on power-up. 7. Place Switch 1 in RUN. The RN1 light should come on. 8. Connect the modem to QUCM port 1 with an MM4 cable. The backplane interface register mapping is as follows: Reg Function ------ -------------------- 4x0001 The Starting register in the QUCM for the PLC output blocks. 1 4x0002 The number of 20 register blocks for the outputs. 5 4x0003 The Starting register in the QUCM for the PLC input blocks. 501 4x0004 The number of 20 register blocks for the inputs. 4 4x0005 The BLKT pointer value for the INPUTS. 4x0006 QUCM serial port bitmap for setting mode and parity. bit 1 - off = Port 1 RNIM slave, on = Port 1 RTU slave bit 2 - off = Port 1 EVEN parity, on = Port 1 NONE parity bit 3 - off = Port 2 RNIM slave, on = Port 2 RTU slave bit 4 - off = Port 2 EVEN parity, on = Port 2 NONE parity 4x0007 The TBLK pointer for the OUTPUTS. 4x0008 Register 1 in the OUTPUT block. 4x0009 Register 2 in the OUTPUT block. 4x0010 Register 3 in the OUTPUT block. 4x0011 Register 4 in the OUTPUT block. 4x0012 Register 5 in the OUTPUT block. 4x0013 Register 6 in the OUTPUT block. 4x0014 Register 7 in the OUTPUT block. 4x0015 Register 8 in the OUTPUT block. 4x0016 Register 9 in the OUTPUT block. 4x0017 Register 10 in the OUTPUT block. 4x0018 Register 11 in the OUTPUT block. 4x0019 Register 12 in the OUTPUT block. 4x0020 Register 13 in the OUTPUT block. 4x0021 Register 14 in the OUTPUT block. 4x0022 Register 15 in the OUTPUT block. 4x0023 Register 16 in the OUTPUT block. 4x0024 Register 17 in the OUTPUT block. 4x0025 Register 18 in the OUTPUT block. 4x0026 Register 19 in the OUTPUT block. 4x0027 Register 20 in the OUTPUT block. 4x0028 Reserved 4x0029 Reserved 4x0030 Reserved 4x0031 Port 1 Slave Address 7 4x0032 Port 2 Slave Address 3x0001 Application 1 Runtime Status 3x0002 Application 1 Halt line number 3x0003 Application 2 Runtime Status 3x0004 Application 2 Halt line number 3x0005 Status bitmap for controlling the table moves 3x0006 Reserved 3x0007 The TBLK pointer for the INPUTS. 3x0008 Register 1 in the INPUT block. 3x0009 Register 2 in the INPUT block. 3x0010 Register 3 in the INPUT block. 3x0011 Register 4 in the INPUT block. 3x0012 Register 5 in the INPUT block. 3x0013 Register 6 in the INPUT block. 3x0014 Register 7 in the INPUT block. 3x0015 Register 8 in the INPUT block. 3x0016 Register 9 in the INPUT block. 3x0017 Register 10 in the INPUT block. 3x0018 Register 11 in the INPUT block. 3x0019 Register 12 in the INPUT block. 3x0020 Register 13 in the INPUT block. 3x0021 Register 14 in the INPUT block. 3x0022 Register 15 in the INPUT block. 3x0023 Register 16 in the INPUT block. 3x0024 Register 17 in the INPUT block. 3x0025 Register 18 in the INPUT block. 3x0026 Register 19 in the INPUT block. 3x0027 Register 20 in the INPUT block. 3x0028 Reserved 3x0029 Reserved 3x0030 Reserved 3x0031 Reserved 3x0032 Reserved The normal operation is that the QUCM and PLC continiously move blocks of 20 registers across the backplane. The QUCM takes the 20 output registers from the PLC and fills a range of 65535 possible registers with this data. It also takes a range of this block of registers and moves that data to the PCL as inputs where a BLKT function moves them to a PLC table. This block of registers in the QUCM is accessed by either RNIM or Modbus RTU messages. The mode of the QUCM port is set by bits in output[6]. If output six equals zero then both ports are in RNIM slave and 9600 baud, EVEN parity. The slave address for each port is set by outputs 31 and 32. Release Notes: -------------- 23Oct2002 - First release.