Maxiflex T2 CPU’s M124xA User’s Manual
DATE May 2002 June 2002 March 2004 Nov 2009 REVISION 1 2 3 4 COMMENTS Initial Issue DIT Table updated, and corrections made Error on page 50 - Bit 12 used to set subscription block Reference to M1242 T2E CPU removed SOFTWARE COPY AVAILABLE This manual is available in printed form or in Adobe Acrobat pdf format. The pdf file is named UMM124XAR04.pdf COPYRIGHT AND PROTECTIVE NOTICES 1.
SCOPE This User Manual provides information on how to install, configure and use the Maxiflex T2 CPU. Programming features specific to these products are included in this manual. This manual does not cover the fundamentals of the EziForth programming language. This manual covers the following product Models: Model Description M1240B M1241B T2 CPU with RS232/485 Serial Port T2C CPU with RS232/485 Serial Port and Conet/c Twisted Pair Network Port.
Introduction The MAXIFLEX T2 range of CPU’s is designed specifically for industrial telemetry and remote I/O applications, combining powerful industrial network communications features with ease of use. All I/O and configuration data variables are automatically accessible through up to 65000 Data Interchange Registers in a single virtual “Data Interchange Table”, allowing the implementation of Remote I/O systems “out of the box”.
Table of Contents 1. GENERAL DESCRIPTION ..........................................................................................................8 1.1 LED Indicators:................................................................................................................ 8 1.2 Serial Port: (applicable to all T2 CPUs).......................................................................... 9 1.3 Programming Port: (applicable to all T2 CPUs) ..........................................................
4.3.2 Local CPU .........................................................................................................................20 4.3.3 Intelligent Module in I/O Slot.............................................................................................20 4.3.4 Local Network ID (using Offset)........................................................................................20 4.3.5 Direct/Global Network ID .................................................................................
8.2 T2 CPU Static Configuration Data Area DIT Register Assignment ............................. 45 Table of Figures Figure 2.1: Layout of the 7I/O Master Base.................................................................................... 11 Figure 3.1 T2 CPU System Architecture......................................................................................... 16 Figure 6.1 - I/O DIT Address Map for T2 CPU ...............................................................................
1. GENERAL DESCRIPTION Serial Port Connector Conet Port Connector Serial Port Dipswitch Conet Port DIP switch Programming Connector Port Figure 3.1: View of the M1241B T2C CPU 1.1 LED Indicators: LED Legend LED Colour CPU OK GREEN I/O OK GREEN RUN GREEN BATT RED SERIAL Rx Maxiflex T2 CPU User Manual UMM124XBR04.pdf YELLOW Description ON - CPU is healthy OFF or Flashing – CPU Faulty or no power applied ON - I/O Module status healthy and I/O Manifest is configured.
SERIAL Tx NETWORK Rx (Except M1240B T2 CPU) NETWORK Tx (Except M1240B T2 CPU) RED YELLOW RED NETWORK TOKEN (M1241B T2C only) GREEN NETWORK ACTIVITY (M1243B T2M only) GREEN ON – serial data is being transmitted on serial port OFF – serial port transmitter is idle ON – network data is being received OFF – network receiver is idle ON – network data is being transmitted OFF – network transmitter is idle ON – network not connected or setup incorrectly OFF – network not connected or setup incorrectly FLAS
1.5 Conet/m Network Port: (only applicable to M1243B T2M CPU) This port provides the connection to the Conet/m radio network. Cone/m is a true peer-topeer Local Area Network (LAN) designed specifically for operation over radio systems. The CPU incorporates an MSK radio modem and CSMA access protocols to allow a peerto-peer network to be constructed using conventional VHF/UHF radios. Maxiflex T2 CPU User Manual UMM124XBR04.
2. Installing the T2 CPU 2.1 Connecting the Internal Battery Before installing the CPU, the battery jumper must be inserted to connect the internal battery supply in the CPU. The CPU is shipped from the factory without the jumper connected to preserve the battery life. The battery jumper can be found at the base of the Maxiflex Bus connector at the rear of the CPU module. Use long nose pliers or tweezers to correctly place the jumper over the posts. 2.
2.3 Connecting the Programming port (all models): Connect the T2 CPU to a standard PC compatible serial port using the OMINFLEX supplied standard programming cable (Part Number M1831A supplied separately). If another cable is to be used, the following connections will apply: Signal Name DB-9 FCC-68 Pin No. Rx Data from T2 2 4 Tx Data to T2 3 1 Ground Reference 5 2 All other pins are reserved and must not be connected. Table 2.
Pin number 2 5 8 1, 3, 4, 6, 7 and 9 Description Signal + Cable screen (S) Signal No connection Table 2.3: Pin allocation of Conet port connector on the M1241B CPU 2.6 Connecting the Conet/m network port (M1243B CPU only): OMNIFLEX supplies pre-made interface cables for a number of radios, that greatly simplifies the installation process of the radio. Consult you OMNIFLEX representative for availability of a cable to suit the radio of your choice.
If the I/O module configuration does not match the actual I/O modules installed, then this LED will flash. If no I/O modules are configured for the rack then the I/O OK LED will remain off. The RUN LED will only turn ON at first power up if the CPU has a user application installed set to begin operating at startup. When shipped from the factory, there is no user application installed and the LED will remain OFF.
3. T2 CPU’s and the MAXIFLEX Architecture 3.1 System Architecture A diagram of the MAXIFLEX System Architecture is shown in Figure 3.1 This diagram shows the T2 CPU in a system with a Programmable Network Interface Module (NIM) and a conventional I/O Module (IOM). NIM’s and IOM’s can be arranged in any order in the available I/O Module slots of the system. 3.2 CPU Functions The T2 CPU contains the following functions: 3.2.1 Real-Time Clock These CPU’s have a real-time clock as a standard function.
Maxiflex T2 CPU User Manual UMM124XBR04.pdf SLOT 0 CPU SLOT 1 PNIM APPLICATION LAYER SLOT 2 I/O APPLICATION LAYER USER PROGRAM USER PROGRAM PRESENTATION LAYER PRESENTATION LAYER 0 64000 4000 + 0 4000 + 3000 I/O PROCESSING PRESENTATION LAYER 8000 + 0 16 Figure 3.
3.2.5 Data Interchange Table (DIT) The Data Interchange Table in the CPU is the crossroads for data. Any exchange of data between functions in the CPU and with the outside world takes place through the DIT. The DIT is an array of 16 bit registers accessible from any function or communications port in the system for the purpose of interchanging data. The DIT is used to hold Configuration Information for the CPU and Dynamic Data to be read in real-time. 3.2.
4. Configuring a T2 CPU 4.1 Using OMNISET or DITview to configure the T2 CPU Most of the features available on the T2 CPU are easily accessible and can be configured with the minimum of effort by writing to Registers in the DIT in the CPU. The best method to manually configure a T2 CPU is to use either the Microsoft Windows95/98/NT/2000 compatible OMNISET or DITView utilities through the programming port of the CPU.
7. You are now ready to view or change any of the parameters in the T2 CPU, and to view the internal dynamic data in the Maxiflex System. 4.2 Configuring the Programming Port This port is dedicated to the Programming and Configuration of the T2 CPU and CONET systems, and requires no configuration to communicate with the CPU to which it is attached (or its I/O modules). This port is permanently configured for the Conet/s protocol (operating at 19,200 baud, 8 data bits, no parity, 1 stop bit.
Select the required Address as described below: 4.3.1 No Address set Select this option only if you are setting the Group Target Address, and you require the Group to take its address from the File Address setting. This option is only useful when setting the Group Target Address. 4.3.2 Local CPU Select this option to communicate directly with the CPU to which the programming tool is connected. 4.3.
4.4 Configuring the Real-time Clock To set real-time clock, write the current time and date to the correct Data Interchange Table Registers. The clock will run immediately from this time. 4.5 Configuring the Serial Port The serial port on the T2 CPU comes equipped with a number of protocols.
Example of Serial Port DIP switch setting 1 2 3 4 5 6 7 8 ON [ White square indicates position of switch lever ] Switches 1-5 = ID This is set as a binary number with Switch 1 the least significant bit, and Switch 5 the Most significant bit. In this example an address of 2 is selected. Switch 6 reserved. (always leave switched off) Switch 7 Default Conet/s (19200 baud) Protocol Select. Switch on to set Conet/s default mode of operation In this example this switch is shown OFF.
module is set to anything other than 4000, then this compressed DIT addressing feature is disabled (factory default). To use this feature, write the value 4000 into the module 1 Start Address parameter (at DIT address 64,080), and then fill in the table with the subsequent start addresses required.
4.6 Configuring the Conet/c Network Port (available on the M1241B T2C CPU only.) The Conet/c Port selection switch is located on the left inside the front door of the CPU (under the Conet DB9 connector). Use this switch to configure the Node address of the CPU on the Conet network and the desired CONET baud-rate (Normal or Slow).
The T2 CPU is configured as a network router by writing the configuration into the Network Routing Table group of registers in the Data Interchange Table. The values to write are obtained from the “ConetRouterWizard” Excel spreadsheet. Enter the network layout into a table in the spreadsheet, and the spreadsheet will then allocate all Global Addresses for the intranet, as well as calculating the Network Router Table values to be written to each Router in the system.
5. The Data Interchange Table explained 5.1 DIT Table Layout The Data Interchange Table (or DIT) in the T2 CPU’s provides access to up to 65,500 16-bit data registers used for reading and writing all configuration and dynamic data in the CPU and all of its I/O modules. Some of these registers reside in the CPU itself, while the balance are accessed through the CPU as if they are registers in the CPU. These registers form part of what is called the “extended” DIT.
5.3 I/O Slots 1 to 15 DIT Range These DIT register ranges provide direct access to the I/O Modules installed in the MAXIFLEX rack. 4000 DIT registers are allocated per slot. Typically, I/O modules will use only a small portion of this allocated space. The datasheet for each I/O Module defines the DIT registers allocated on each module. These registers on the I/O module datasheet will be shown numbered from 0.
6. I/O Module Management & Scanning Explained The T2 CPU automatically identifies the I/O module types installed in a Maxiflex system. This information is used for two purposes: 1. Checking of the presence of the correct I/O modules in a system. 2. Automatic scanning of these I/O modules. 6.1 The I/O Module Manifest You can configure a T2 CPU with the required list of I/O modules for the system. This list is called the I/O manifest.
3. Press the “Read Current Group” button to read the CPU’s current status to the screen. 4. Check the first item in the group – the I/O Manifest Key. Change this key to “Locked” if it is “Unlocked”. 5. Press the “Write Current Group” button to write the “Locked” value to the T2 CPU. 6. Write the required module type to each item in the I/O list. 7. Press the “Write Current Group” button to write this information to the T2 CPU. This sets the list of modules in the manifest table. 6.1.
Master Rack I/O Slot: Expansion Rack 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Analogue Outputs 110 126 142 158 174 190 206 222 238 254 270 286 302 318 334 No of Registers 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 Analogue Inputs 350 366 382 398 414 430 446 462 478 494 510 526 542 558 574 No of Registers 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 Digital Outputs 590 592 594 596 598 600 602 604 606 608 610 612 614 6
7. The Subscription Service Explained 7.1 Introduction to Subscriptions Central to many applications involving communications across networks is the need to replicate data between nodes on the network. Examples include a SCADA system acquiring data from remote telemetry units in the field; or a point-to-point telemetry application, where inputs are transmitted from one location to outputs at another location.
1. Only one message is required on the network for a data update as opposed to two in a Request/Reply polling method. This reduces network overhead allowing more data throughput on the network. 2. The regular data updates can be much slower than the response time required for the system by using change-of-state detection. The Source node will send data immediately there is a change of state, providing the optimum system response, without the need to have a fast regular update time.
The following table shows the information required to configure a subscription: ITEM DESCRIPTION VALID RANGE Change-of-State Required This sets whether the subscription data block will be sent when any data in the block changes. Yes/No Update time This is the time between regular updates of data that will be sent whether the data has changed or not.
Remote node 5 on the CONET network has digital information in DIT registers 620 to 627. The Central Node 2 needs to monitor these digital inputs. A regular update time of every 10s is quite satisfactory to determine that the remote system is still connected and functioning if nothing changes, but the data should be sent immediately if any of the digital inputs changes state. Node 2 is the Destination node (it sets up the subscription and receives the data).
8. Appendix: T2 CPU Detailed DIT Layout: 8.1 T2 CPU Dynamic Data Area DIT Register Assignment (DIT Registers 0 – 3999) DIT Number Description 0 – 23 T2 CPU System Information 0 Product Code Unique Number in BCD format that reflects the type of product as follows: 0110 – M1240B T2 CPU 0111 – M1241B T2C CPU 0113 – M1243B T2M CPU 1 2 3 4-7 8-21 21 DIT Revision Number Version Number of the DIT Layout supported by the CPU. Kernel Version Number Version number of the CPU Kernel. BCD format.
DIT Number 22 23 24 – 31 24 25 26 27 28 29 30 31 32 – 39 Description System Register Indicates the following conditions current in the CPU: Bit 0: Application program HALTED (0) or RUNNING (1) Bit 1: CPU Battery HEALTHY (0) or LOW (1) Bit 2: I/O Manifest HEALTHY (0) or ERROR (1) Bit 3: I/O Manifest Key UNLOCKED (0) or LOCKED(1) Bits 4-7 Auto-scanning OFF (0000) or ON (1111) Bits 8-15: Reserved Alive Counter Free running counter in the CPU. Useful for communications diagnostics.
DIT Number Description 48 49 Power Supply Status (applies to M1152 Power Supply only) Bit 0 – Mains supply DISCONNECTED (0) or CONNECTED (1) Bit 1 – Temperature Sensor DISCONNECTED (0) or CONNECTED (1) Bit 2 – Battery Level Alarm HEALTHY (0) or ALARM (1) When the measured battery level falls below the Alarm level configured in the Setup M1152 PSU module group, this status goes to ALARM. If the current battery voltage is above the Alarm level, then the status is HEALTHY.
DIT Number 51 Description 52 Scanned Module ID for I/O Slot 1 Every I/O and NIM module has a unique Module ID code that identifies it on the Maxiflex Rack. The ID code of the I/O or NIM module for this slot is displayed in this register.
DIT Number Description Global ID of the CPU on the Serial Port. Only applies if the Network Routing Table is configured to include this port. Note that as the default Network Routing Table does not include this port, the default Global ID setting is set to 255 which is an invalid Global ID. 76 Network Port Local ID This is the local ID setting on the Network Port Dipswitch, switches 1 to 7. 77 Network Port Global ID Global ID of the CPU on the Network Port.
DIT Number Description 114 115 116 Raw Analogue Output for I/O Slot 1, Channel 5 Raw Analogue Output for I/O Slot 1, Channel 6 Raw Analogue Output for I/O Slot 1, Channel 7 117 118 119 120 121 122 123 124 125 Raw Analogue Output for I/O Slot 1, Channel Raw Analogue Output for I/O Slot 1, Channel Raw Analogue Output for I/O Slot 1, Channel Raw Analogue Output for I/O Slot 1, Channel Raw Analogue Output for I/O Slot 1, Channel Raw Analogue Output for I/O Slot 1, Channel Raw Analogue Output for I/O Slot 1
DIT Number Description 350 – 365 Raw Analogue Input Data for I/O Slot 1, Channels 1-16 350 351 352 353 Raw Analogue Input for I/O Slot 1, Channel Raw Analogue Input for I/O Slot 1, Channel Raw Analogue Input for I/O Slot 1, Channel Raw Analogue Input for I/O Slot 1, Channel 1 2 3 4 354 355 356 357 358 359 360 361 362 363 Raw Analogue Input for I/O Slot 1, Channel Raw Analogue Input for I/O Slot 1, Channel Raw Analogue Input for I/O Slot 1, Channel Raw Analogue Input for I/O Slot 1, Channel Raw Analo
DIT Number Description The Bit representation for each channel is provided below.
DIT Number Description 604-605 Raw Digital Output Data for I/O Slot 8 606-607 Raw Digital Output Data for I/O Slot 9 608-609 Raw Digital Output Data for I/O Slot 10 610-611 Raw Digital Output Data for I/O Slot 11 612-613 Raw Digital Output Data for I/O Slot 12 614-615 Raw Digital Output Data for I/O Slot 13 616-617 Raw Digital Output Data for I/O Slot 14 618-619 Raw Digital Output Data for I/O Slot 15 620 – 649 Raw Digital Input Data Area The Raw Digital Input values scanned by Maxiflex D
DIT Number Description 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Channel 17 Channel 18 Channel 19 Channel 20 Channel 21 Channel 22 Channel 23 Channel 24 Channel 25 Channel 26 Channel 27 Channel 28 Channel 29 Channel 30 Channel 31 Channel 32 If Bit n is 1, then Input channel n is ON If Bit n is 0, then Input channel n is OFF 622-623 Raw Digital Input Data for I/O Slot 2 624-625 Raw Digital Input Data for I/O Slot 3 626-627 Raw Digital Input Data for I/O Slot 4 628-629 Raw Digital Input Data for I/O Slo
8.2 T2 CPU Static Configuration Data Area DIT Register Assignment (DIT Registers 64000 – 65499) This DIT area is maintained in the CPU as non-volatile memory. Data content is retained even if the onboard battery is low or being replaced. All configuration of T2 functions is therefore implemented here so that configuration is not lost during power down. In addition, there are some registers available for the User to place some configuration parameters for application programs.
DIT Number Description 64052 64053 64054 Set the Module ID for the module installed in I/O Slot 2 Set the Module ID for the module installed in I/O Slot 3 Set the Module ID for the module installed in I/O Slot 4 64055 64056 64057 64058 64059 64060 64061 64062 64063 64064 64065 Set the Module ID for the module installed in I/O Slot 5 Set the Module ID for the module installed in I/O Slot 6 Set the Module ID for the module installed in I/O Slot 7 Set the Module ID for the module installed in I/O Slot 8 S
DIT Number Description 64081 64082 64083 64084 64085 64086 64087 64088 64089 64090 64091 64092 64093 Set this register to 4000 to enable the User I/O Slot Address Table. Set to this register to 0 to disable the User I/O Slot Address Table and revert to the full addressing scheme.
DIT Number Description 64100 Serial Port Setup This register sets up the communications parameters for the serial port on the CPU.
DIT Number Description 64106 64107 64108 Setup for Network 6 Setup for Network 7 Setup for Network 8 64109 64110 64111 64112 64113 64114 64115 64116 64117 64118 64119 64120 64121 64122 Setup for Network 9 Setup for Network 10 Setup for Network 11 Setup for Network 12 Setup for Network 13 Setup for Network 14 Setup for Network 15 Setup for Network 16 Setup for Network 17 Setup for Network 18 Setup for Network 19 Setup for Network 20 Setup for Network 21 Setup for Network 22 64123 64124 Setup for Netwo
DIT Number Description 64149 64150 64151 – 65199 Setup for Network 49 Setup for Network 50 Reserved 64200 – 64247 Subscription Blocks Table These registers contain the data that allows the T2 CPU to subscribe to data on another device on the network. The subscription mechanism allows this CPU to “subscribe” to a block of data on another device on the network.
DIT Number Description 64216 64217 Remote Start DIT Range 64218-64223 Subscription Block 4 64218 64219 64220 64221 64222 64223 Subscription Type and Time Local Port Number Local Start DIT Remote ID Remote Start DIT Range 64224-64229 Subscription Block 5 64224 64225 64226 64227 64228 64229 Subscription Type and Time Local Port Number Local Start DIT Remote ID Remote Start DIT Range 64230-64235 Subscription Block 6 64230 64231 64232 64233 64234 64235 Subscription Type and Time Local Port Number
DIT Number Description 64257 64258 64259 Remote ID Remote Start DIT Range 64260-64265 Subscription Block 11 64260 64261 64262 64263 64264 64265 Subscription Type and Time Local Port Number Local Start DIT Remote ID Remote Start DIT Range 64266-64271 Subscription Block 12 64266 64267 64268 64269 64270 64271 Subscription Type and Time Local Port Number Local Start DIT Remote ID Remote Start DIT Range 64272-64277 Subscription Block 13 64272 64273 64274 64275 64276 64277 Subscription Type and Tim
DIT Number Description 64298 64299 64300 64301 Local Start DIT Remote ID Remote Start DIT Range 64302-64307 Subscription Block 18 64302 64303 64304 64305 64306 64307 Subscription Type and Time Local Port Number Local Start DIT Remote ID Remote Start DIT Range 64308-64313 Subscription Block 19 64308 64309 64310 64311 64312 64313 Subscription Type and Time Local Port Number Local Start DIT Remote ID Remote Start DIT Range 64314-64319 Subscription Block 20 64314 64315 64316 64317 64318 64319 Sub
DIT Number Description 64339 64340 64341 64342 64343 Local Port Number Local Start DIT Remote ID Remote Start DIT Range 64344-64349 Subscription Block 25 64344 64345 64346 64347 64348 64349 Subscription Type and Time Local Port Number Local Start DIT Remote ID Remote Start DIT Range 64350-64355 Subscription Block 26 64350 64351 64352 64353 64354 64355 Subscription Type and Time Local Port Number Local Start DIT Remote ID Remote Start DIT Range 64356-64361 Subscription Block 27 64356 64357 6435
DIT Number Description 64380 64381 64382 64383 64384 64385 Subscription Type and Time Local Port Number Local Start DIT Remote ID Remote Start DIT Range 64386-64391 Subscription Block 32 64386 64387 64388 64389 64390 64391 Subscription Type and Time Local Port Number Local Start DIT Remote ID Remote Start DIT Range 65000-65499 User allocated Space This area of the Static Configuration area of the DIT can be used by EZIFORTH programs to store static configuration information that the user wishes to