InteliCommunicationGuide February%

74
Copyright © 2004 ComAp s.r.o. Written by Ladislav Kadanik Prague, Czech Republic ComAp, spol. s r.o. Světova 7, 180 00 Praha 8, Czech Republic Tel: +420 2 66316661, Fax: +420 2 66316647 E-mail: [email protected], www.comap.cz Compact Controllers for Stand-by and Parallel Operating Gen-sets InteliGen InteliSys InteliLite InteliDrive February 2005 Inteli Communication Guide

Transcript of InteliCommunicationGuide February%

  • Copyright 2004 ComAp s.r.o. Written by Ladislav Kadanik Prague, Czech Republic

    ComAp, spol. s r.o. Svtova 7, 180 00 Praha 8, Czech Republic Tel: +420 2 66316661, Fax: +420 2 66316647 E-mail: [email protected], www.comap.cz

    Compact Controllers for Stand-by and Parallel Operating Gen-sets

    InteliGen InteliSys InteliLite InteliDrive February 2005

    Inteli Communication Guide

  • InteliCommunicationGuide, ComAp February 2005 2 InteliCommunicationGuide February 05.pdf

    Table of Contents Table of Contents ...............................................................................................................................................2 General information ............................................................................................................................................5

    Communication between controller and peripherals, between controllers ................................................5 Communication between controller(s) and superior, service or monitoring system (usually PC) .............5

    How to use different characters sets..............................................................................................................6 The first step ..............................................................................................................................................6 The second step ........................................................................................................................................6

    Local Connection................................................................................................................................................7 Controllers..................................................................................................................................................7 Equipment..................................................................................................................................................7 Available software for IG and IS ................................................................................................................7 Available software for IL ............................................................................................................................7 Available software for ID............................................................................................................................7 Features (with WinEdit software)...............................................................................................................7 RS232 cable ..............................................................................................................................................8

    Local connection for multiple applications .....................................................................................................8 InteliGen and InteliSys CAN bus connection.............................................................................................8

    I-CR module for CAN bus extension..............................................................................................................8 I-CR module functions: ..............................................................................................................................9 I-CR configuration jumpers: .......................................................................................................................9 I-CR indication and diagnostic LEDs: ........................................................................................................9

    Two IG-MU on CAN bus ..............................................................................................................................10 CAN bus terminating 120 ohms resistors availability ..............................................................................10

    Remote Connection..........................................................................................................................................11 Controllers................................................................................................................................................11 Equipment................................................................................................................................................11 Available software....................................................................................................................................11 Features (with WinEdit software).............................................................................................................11

    Modem Connection ..........................................................................................................................................12 Controllers................................................................................................................................................12 Equipment................................................................................................................................................12 Available software....................................................................................................................................12 Features (with WinEdit software).............................................................................................................12

    Data transfer rates .......................................................................................................................................13 Using modem bridge IG-MU ........................................................................................................................13

    Important setpoint in controller ................................................................................................................13 Combined Communication - Remote and Modem.......................................................................................14

    Option1: ...................................................................................................................................................14 Option2: ...................................................................................................................................................14

    Combined communication - IG-MU with maximum configuration................................................................14 Two modem types connection .....................................................................................................................15 Training modem connection.........................................................................................................................15

    Modem call back...............................................................................................................................................16 Connection...............................................................................................................................................16

    Internet Ethernet Connection ...........................................................................................................................17 Controllers................................................................................................................................................17 Equipment................................................................................................................................................17 Available software....................................................................................................................................17 Features (with WinEdit software).............................................................................................................17 Connection from WinEdit .........................................................................................................................17 One controller - RS232 ............................................................................................................................18 Two controllers CAN / Ethernet connection..........................................................................................18 Max four PCs can be connected to one iG-IB at once ............................................................................18 It is possible to connect additional 2xiG-IB + 1 IG-MU via CAN bus.......................................................19 It is possible to connect additional iG-IB+ 2xIG-MU via CAN bus. ..........................................................19 Training internet connection ....................................................................................................................19

  • InteliCommunicationGuide, ComAp February 2005 3 InteliCommunicationGuide February 05.pdf

    Internet Dialup Connection...............................................................................................................................20 Controllers................................................................................................................................................20 Equipment................................................................................................................................................20 Available software....................................................................................................................................20 Features (with WinEdit software).............................................................................................................20

    Dialup connection.........................................................................................................................................20 One controller - RS232 ............................................................................................................................20 More controllers - CAN ............................................................................................................................21

    Internet Dialup connection (Internet callback)..............................................................................................21 Connection...............................................................................................................................................21

    Active Call.........................................................................................................................................................23 Controllers................................................................................................................................................23 Equipment................................................................................................................................................23 Available software....................................................................................................................................23 Function ...................................................................................................................................................23 Terminal attempt order for active call ......................................................................................................23

    SMS Active Call................................................................................................................................................24 Controllers................................................................................................................................................24 Equipment................................................................................................................................................24 Function ...................................................................................................................................................24 Terminal attempt order for SMS active call .............................................................................................24 Example ...................................................................................................................................................24

    Active e-mail (SMS e-mail) ...............................................................................................................................25 Controllers................................................................................................................................................25 Equipment................................................................................................................................................25 Function ...................................................................................................................................................25 Terminal attempt order for SMS active call .............................................................................................25 Sample of active e-mail (from controller) ...............................................................................................25 Active call EML-SMS ............................................................................................................................26 E-mail box for tests ..................................................................................................................................27

    SMS Message Control......................................................................................................................................28 Controllers................................................................................................................................................28 Equipment................................................................................................................................................28 Features...................................................................................................................................................28

    Terminal connection .........................................................................................................................................29 Controllers................................................................................................................................................29 Equipment................................................................................................................................................29 Function ...................................................................................................................................................29

    Modbus connection ..........................................................................................................................................30 Protocol support.......................................................................................................................................30 Protocol implemented ..............................................................................................................................30

    Important setpoints in controller ...................................................................................................................30 Modbus communication via IG-MU..........................................................................................................31

    Modbus protocol description ............................................................................................................................32 Introduction ..............................................................................................................................................32 Communication object vs. Register .........................................................................................................32 Data reading ............................................................................................................................................32 Data writing ..............................................................................................................................................33 Check field calculation .............................................................................................................................35 Data types................................................................................................................................................35 List of communication objects..................................................................................................................36

    Communication status..................................................................................................................................37 Controller address........................................................................................................................................37 Communication protocol ..............................................................................................................................38 Write password setting.................................................................................................................................38 Write password changing level 1 .................................................................................................................38 Write password changing level 2 .................................................................................................................38 Write password changing level 3 .................................................................................................................39 Last error of the Modbus communication.....................................................................................................39 Current time..................................................................................................................................................39 Current date .................................................................................................................................................39 Action - command ........................................................................................................................................39

  • InteliCommunicationGuide, ComAp February 2005 4 InteliCommunicationGuide February 05.pdf

    Controller serial number...............................................................................................................................40 Alarm list.......................................................................................................................................................40 Remote communication access code setting...............................................................................................40 Remote communication access code changing...........................................................................................40 Active call termination ..................................................................................................................................41 Controller identification string.......................................................................................................................41 Values multipack ..........................................................................................................................................41 Diagnostic codes list ....................................................................................................................................41

    Error list....................................................................................................................................................42 How create actual Communication object list ..............................................................................................42

    Modbus communication examples ...................................................................................................................43 Battery voltage reading ................................................................................................................................43 Binary inputs reading ...................................................................................................................................43 Alarm list reading .........................................................................................................................................43 Engine state reading ....................................................................................................................................44 Setpoint adjusting.........................................................................................................................................44

    Set Gear teeth to 126 ..............................................................................................................................44 Gen-set commands..................................................................................................................................45

    IG-MU, IG-IB Communication Units .................................................................................................................46 Modem unit IG-MU......................................................................................................................................46

    Modem support ........................................................................................................................................46 IG-MU Terminals.....................................................................................................................................47 Internal IG-MU jumpers ...........................................................................................................................47 RS485 / RS 422 connection ....................................................................................................................48

    IG-IB Internet Bridge ....................................................................................................................................48 Indication and diagnostic LEDs...................................................................................................................48 IG-IB configuration .......................................................................................................................................49 Ethernet LAN configuration..........................................................................................................................50

    IG-IB connection to internet (Ethernet) ....................................................................................................51 Dialup connection configuration...................................................................................................................52

    Connection to ISP....................................................................................................................................52 Modem initialization .................................................................................................................................52 Active e-mail ............................................................................................................................................52

    IG-IB Interface..............................................................................................................................................53 IG-IB Dongle ............................................................................................................................................53

    Internet connection diagnostics....................................................................................................................54 How to access IG-IB behind firewall ............................................................................................................54

    Modem Recommendations...............................................................................................................................56 Analog modem with DC supply ....................................................................................................................56 Recommended ISDN modem ......................................................................................................................56 Recommended GSM modems.....................................................................................................................56

    GSM modem wiring notes .......................................................................................................................56 GSM Modem setup..................................................................................................................................57

    Mobile Phone SIM card setting ....................................................................................................................58 How to check SIM card DATA setting......................................................................................................58

    Converters ........................................................................................................................................................59 Converter RS232 RS422/485..................................................................................................................59

    Recommended converters.......................................................................................................................59 Converter 230 V AC TCP/IP....................................................................................................................59

    Recommended converter ........................................................................................................................60 Converter USB RS232 ............................................................................................................................60

    Recommended convereters.....................................................................................................................60 Converter USB RS485 ............................................................................................................................60

    Recommended converter ........................................................................................................................60 Isolator RS232 .............................................................................................................................................60

    Recommneded isolator............................................................................................................................60 Appendix...........................................................................................................................................................61

    Modbus Communication objects list ........................................................................................................61 Example object list - IG-SPtM+IOM V5.5 ................................................................................................61

  • InteliCommunicationGuide, ComAp February 2005 5 InteliCommunicationGuide February 05.pdf

    General information Communication is a very wide topic. From the ComAp control systems user point of view we have to distinguish at least following levels of communication:

    Communication between controller and peripherals, between controllers Communication between controller InteliGen (IG-CU), InteliSys (IS-CU) and its peripherals (such as IG-IOM, IS-AIN8) is described in the controller Users guides. Communication between controllers for multiple applications is also described in the Users guide. For IG-CU:

    IG-MEXT-MEXT+IOM-x.y.PDF, IG-MINT-MINT+IOM-x.y.PDF, IG-SPM-SPM+IOM-x.y.PDF, IG-SPtM-SPtM+IOM-x.y.PDF, IG-SSB-SSB+IOM-x.y.PDF.

    eg. in chapter Extension modules (CAN bus) connection. For IS-CU of:

    IS-MINT-MINT+x.y.PDF, IS-SPI-SPI+x.y.PDF , IS-SPM-SPM+x.y.PDF, IS-SPtM-SPtM+x.y.PDF, IS-SSB-SSB+x.y.PDF.

    eg. in chapter External modules connection. Communication features of InteliLite controllers please refer in IL-AMF-x.y.pdf IL-MRS-x.y.pdf LiteEdit-x.y.pdf

    Communication between controller(s) and superior, service or monitoring system (usually PC) Communication between controller(s) and superior, service or monitoring system (usually PC) is described in this Communication guide. There are following types of communication between controller(s) and superior system: - Local Connection - Remote Connection - Modem Connection - Modem Callback - Internet Ethernet Connection - Internet Dialup Connection (Internet Callback) - Active Call - Active SMS - Active e-mail - SMS Message Control - Terminal connection There is following communication option available for the user SW designers and third party software: - Modbus Connection

  • InteliCommunicationGuide, ComAp February 2005 6 InteliCommunicationGuide February 05.pdf

    How to use different characters sets

    The first step Characters set is fix programmed in IG controller display (OTP) processor and cant be changed. To find out supported characters set please check IG controller serial number according following table. Serial number is visible on IG info screen which is activated by pressing and holding of ENTER button and pressing of PAGE button. Serial number Character set support xx1xxxxx Standard character set: part of ASCII code (less than 128) xx2xxxxx Standard character set + West European languages (German, French,

    Dutch, Swedish, Finnish, Spanish, ..) xx3xxxxx Standard character set: + Chinese characters xx4xxxxx Standard character set: + East European languages (Czech, Polish,

    Russian, ) xx5xxxxx Standard character set + Turkey characters

    The second step Open the WinEdit Translator. Create New dictionary (Dictionary New dictionary), Select source and Target language. Select Font and script for Translated text according to IG display version. Translate texts to selected language. Close dictionary, Write archive to IG.

  • InteliCommunicationGuide, ComAp February 2005 7 InteliCommunicationGuide February 05.pdf

    Local Connection

    RS 232

    PC

    Controllers Controllers IG-CU IS-CU IL-CU ID-DCU Connection applicable YES YES YES YES

    Equipment Equipment needed Controller side - Connection RS232 cable up to 10m PC side PC with RS 232

    Available software for IG and IS Software WinEdit MultiEdit Supervisor IGS-Log Third party SW Applicable YES YES YES YES YES (MODBUS)

    Available software for IL Software LiteEdit Third party SW Applicable YES YES (MODBUS)

    Available software for ID Software DriveConfig DriveMonitor Third party SW Applicable YES YES YES (MODBUS) For WinEdit, MultiEdit software description see: WINEDITx.y-MULTIEDITx.y.PDF For Supervisor software (Automatic Data Acquisition Software for InteliGen and InteliSys controllers) description see: Supervisor-x.y.PDF For IGS-LOG (Single and Multiple applications monitoring software) description see: IGS-LOG-1.1.PDF For other PC tools see LiteEdit, DriveConfig and DriveMonitor software.

    Features (with WinEdit software)

    On-

    line

    Gen

    set

    cont

    rol

    Con

    trol

    ler

    conf

    igur

    atio

    n

    Rea

    d G

    ense

    t va

    lues

    Rea

    d hi

    stor

    y

    Firm

    war

    e pr

    ogra

    mm

    ing

    Arc

    hive

    file

    s up

    load

    /dow

    nloa

    d

    Con

    nect

    ion

    spee

    d

    Available YES YES YES YES YES YES HIGH

  • InteliCommunicationGuide, ComAp February 2005 8 InteliCommunicationGuide February 05.pdf

    RS232 cable It is recommended to use standard Null-modem cable for local connection between controller and PC, although the three wires (TxD, RxD, GND) RS 232 connection is enough for direct IG-CU to PC communication:

    Controller connector D-SUB9 female

    PC RS 232 connector D-SUB9 female

    2 ------------------------- 3 TxD 3 ------------------------- 2 RxD 5 ------------------------- 5 GND

    Local connection for multiple applications

    InteliGen and InteliSys CAN bus connection For InteliGen multiple applications (MINT, MEXT) connect IG-COM module to each IG-CU and

    connect CAN bus to IG-MU unit. CAN bus terminals on IS-CU are active all the time, not depend on Dongle.

    RS 232

    iG-COM

    iG-IOM iG-IOM

    iG-COM

    CAN

    CAN 2 CAN 2

    iG_MURS232

    RS422 PC

    There are two separate CAN bus lines on controller. One for connection between controllers, the second one (CAN2) is for external IG-IOM, IGS-PTM or IGL-RA15 modules connection. Hint: The different module ID-COM is used for InteliDrive CAN bus wiring.

    I-CR module for CAN bus extension If the distance between units is too high to fit into the 200 m limit (or 900 m for 8 controllers), CAN repeater module (I-CR) can be used to extend it. Typical case in line extension: total bus length up to 400 m 32C mode

    total segment length up to 200 m total segment length up to 200 m

    IG (1) IG (32) IG (2) IG(x+1)IG (x)

    I-CR A CAN B

  • InteliCommunicationGuide, ComAp February 2005 9 InteliCommunicationGuide February 05.pdf

    Connection of IG-MU, combination of different CAN bus speeds:

    total segment length up to 900 m total segment length up to 200 m

    IG (1) IM (8) IG (x) IG-MU

    I-CR A CAN B

    This connection allows PC communication to all controllers in the system (e.g. via MultiEdit), including a distant InteliMains unit.

    I-CR module functions: - Intercontroller CAN bus extension (one or more I-CR modules can be used). - Intercontroller CAN bus bus-tie bridging makes groups of controllers in segments A and B invisible

    one for another depending on bus-tie breaker state, keeping the PC communication (IG-MU, IG-IB) in function for all controllers.

    - Peripheral CAN bus extension

    I-CR configuration jumpers: P2 Forces 250 kbps mode (32C) on CAN A, otherwise speed autodetection is used. P3 Forces 250 kbps mode (32C) on CAN B, otherwise speed autodetection is used. P4 Activates Filter mode (bus-tie bridging). P5 Forces alternate controller address 3 for bus-tie status reading (default controller address is 4). P10 If H network configuration used (two I-CR units), it must be switched to RS-422 mode.

    I-CR indication and diagnostic LEDs:

    LED State Function Lights Firmware is OK and running RUN Flashes Firmware corrupted (periodic Watchdog reset) Lights CAN A communication is running DET-A Flashes CAN A communication speed autodetection is in progress (I-CR

    automatically enters this mode if no CAN message received for 2 s) Lights CAN B communication is running DET-B Flashes CAN B communication speed autodetection is in progress (I-CR

    automatically enters this mode if no CAN message received for 2 s) CAN-A (TxC, RxC) Flashes CAN A interface activity CAN-B (TxC, RxC) Flashes CAN B interface activity COM (TxD, RxD) Flashes RS232/422 interface activity

    For more detailed information about I-CR, see the Application sheet Extending the CAN bus.

  • InteliCommunicationGuide, ComAp February 2005 10 InteliCommunicationGuide February 05.pdf

    Two IG-MU on CAN bus Connecting of 2 IG-MU units on one CAN bus is allowed only if each one has different CAN address. IG-MU address can be changed by internal Address 2 jumper. No jumper: IG-MU Address =1; with jumper: IG-MU Address = 2. Two PC with local (direct) MultiEdit connection at once are in following example:

    IG / IS n

    PC 1 RS232

    CAN

    IG / IS 1

    IG / IS 2

    RS232

    IG-MU1

    RS232

    RS485

    CAN

    IG-MU2

    RS232

    RS485

    CAN PC 2

    CAN bus terminating 120 ohms resistors availability Following communication or extension modules connected to the CAN bus have internal 120 ohm terminating resistor that can be connected by jumper setting.

    Module 120 ohm resistor jumper

    IG-MU No IG-IB No

    IG-COM on CAN2 ID-COM on CAN2 IS-AIN8 No

    IS-BIN16/8 No IG-IOM Yes

    IGS-PTM Yes IGL-RA15 No

    I-CB Yes

  • InteliCommunicationGuide, ComAp February 2005 11 InteliCommunicationGuide February 05.pdf

    Remote Connection

    485422

    232

    RS 232 232

    422485

    RS 232 RS 422

    RS 485or

    PC

    RS 485/422 communication line has to be terminated by 120 ohms resistors on both end, IG-MU has integrated this resistor follow RS 485/422 converter user manual. Multiple controllers wiring with RS485/422 see in Modbus connection chapter. IG-MU unit must be switched to RS485/422 mode for remote direct connection by internal switch. Hint: When will be used ADAM module then connect Rx, Tx-A to DATA+ and Rx, Tx-B to DATA-. Shielding connect to ADAM GND on both sides and external 120ohm resistor between DATA+ and DATA- on ADAM side (in off state). Internal ADAM 4520 switches: set Data format 10 bit and baud rate 19200. Cable must be not crossed (RxD-TxD) RS232 for connection to between ADAM and PC SUB9 RS232 connector wiring: 2 - 2, 3 3, 5 5, 7 7.

    Controllers Controllers IG-CU IS-CU IL-CU ID-DCU Connection applicable YES YES YES YES

    Equipment Equipment needed Controller side Converter to RS485/422 or IG-MU unitConnection Twisted wire PC side Converter to RS485/422

    Available software Software WinEdit MultiEdit Supervisor IGS-Log Third party SW Applicable YES YES YES YES YES (MODBUS)

    Features (with WinEdit software)

    On-

    line

    Gen

    set

    cont

    rol

    Con

    trol

    ler

    conf

    igur

    atio

    n

    Rea

    d G

    ense

    t va

    lues

    Rea

    d hi

    stor

    y

    Firm

    war

    e pr

    ogra

    mm

    ing

    Arc

    hive

    file

    s up

    load

    /dow

    nloa

    d

    Con

    nect

    ion

    spee

    d

    Available YES YES YES YES YES YES HIGH

  • InteliCommunicationGuide, ComAp February 2005 12 InteliCommunicationGuide February 05.pdf

    Modem Connection

    RS 232 AnalogModem

    AnalogModem

    RS 232

    PC

    RS 232 GSM Modem

    GSM

    Modem

    RS 232

    PC

    Controllers Controllers IG-CU IS-CU IL-CU ID-DCU Connection applicable YES YES YES YES

    Equipment Equipment needed Controller side Analog, ISDN or GSM modemConnection Phone line or GSM PC side Analog, ISDN or GSM modem

    Available software Software WinEdit MultiEdit Supervisor IGS-Log Third party SW Applicable YES YES YES YES YES (MODBUS)

    Features (with WinEdit software)

    On-

    line

    Gen

    set

    cont

    rol

    Con

    trol

    ler

    conf

    igur

    atio

    n

    Rea

    d G

    ense

    t va

    lues

    Rea

    d hi

    stor

    y

    Firm

    war

    e pr

    ogra

    mm

    ing

    Arc

    hive

    file

    s up

    load

    /dow

    nloa

    d

    Con

    nect

    ion

    spee

    d [B

    /s]

    Analog YES YES YES YES YES* YES MEDIUMISDN YES YES YES YES YES* YES MEDIUMGSM YES YES YES YES YES* YES LOW *Possible, but not recommended due to risk of crash of programming if the communication is lost.

  • InteliCommunicationGuide, ComAp February 2005 13 InteliCommunicationGuide February 05.pdf

    Data transfer rates Real data transfer rate is limited by the lowest rate in connection, mostly is limited by Link rate.

    RS 232ModemModem

    RS 232 PC

    Terminal rate

    Link rate

    Terminal rate Following table displays examples of data transfer rates. Those values can differ case to case and depend on real link conditions and Modem type. Data transfer rate was increased from DDE server 2.9 (IG-6.1, IS-3.1). Controller

    Terminal rate Bites per second

    Real link rate

    Bytes per second

    PC Terminal rate

    Bites per second Analog modem 19200 300 up to 1900 GSM modem 9600 80 up to 900

    Depends on PC configuration

    Hint: Real link rate is visible in DDE server window.

    Using modem bridge IG-MU IG-MU has to be connected to modem via standard modem cable where the DSR (Data Send Ready) signal detects modem presence. Hint: IG-MU software older than 2.1 is not compatible with InteliGen 6.0 and higher and InteliSys 3.0 and higher.

    PC

    CAN

    RS 232Modem

    orGSM

    Modem

    Modemor

    GSMModem

    RS 232

    iG-COM iG-COM

    CAN

    iG_MURS232

    RS422

    Important setpoint in controller Basic settings: Contr addr [ 1 to 32 ] Controller identification number. Each gen-set in the group has to have its own unique number. Default value is 1. Hint: When opening Direct or Modem connection to single controller , the Controller address has to correspond to WinEdit communication setup setting.

  • InteliCommunicationGuide, ComAp February 2005 14 InteliCommunicationGuide February 05.pdf

    Combined Communication - Remote and Modem

    Option1:

    485422

    232

    RS 232232

    422485

    RS 232 RS 422RS 485 or

    iG-COM-

    CAN

    RS 232Modem

    orGSM

    Modem

    Modemor

    GSMModem

    RS 232RS232

    RS422iG_MU

    PC

    PC

    Option2:

    PC

    PC

    CAN

    RS 232Modem

    orGSM

    Modem

    Modemor

    GSMModem

    RS 232

    iG-COM

    iG-COM

    CAN

    CAN

    422/485

    232

    RS 232RS 422/485iG_MURS232

    RS422

    iG_MURS232

    RS422

    Combined communication - IG-MU with maximum configuration There are more separate internal channels for controller connection which can operate at once:

    Local connection 1 (IG-MU address 1) Local connection 2 (IG-MU address 2) Modem connection

    Controller and IG-MU automatically detects direct (local) and Modem connection. To use two local connections and one modem connection at once (three IG-MU) is possible. One of local IG-MU has to be set to address 2 (jumper).

  • InteliCommunicatInteliCommunicat

    IG / IS n

    PC 1

    CAN 0

    IG / IS 1

    IG / IS 2

    Modem or

    GSM modem

    PC 2 RS232 / 485

    RS232 / 485

    I2G-MU

    RS232

    RS485

    CAN

    I1G-MU

    RS232

    RS485

    CAN

    IG-MU

    RS232

    RS485

    CAN

    Modem or

    GSM modem

    PC 3

    Two modemIt is possible to coindependent modOne modem is cocontroller interfacWhen an active ccall/send an SMSthen try to substit

    IG / IS

    R

    GSM

    modem

    Training moFollowing phone Controller: InteliSAddr.: 1 Access code = 0 Analog modem, ionGuide, ComAp February 2005 15 ionGuide February 05.pdf

    types connection nnect two modems (e.g. Analog and GSM) to one controller at once to have two em channels for DATA and GSM messages. nnected via IG-MU CAN bus (IG-COM), the second is connected directly to RS 232 e. all is activated in the controller, the modem connected directly to the controller tries to . If this is not successful, the Active call fail alarm appears. The second modem doesnt ute the first one.

    CAN 0

    IG-MU

    RS232

    RS485

    CAN Analog or ISDN modem

    Analog or ISDN modem

    1

    S232

    PC 1

    PC 2 GSM

    modem

    dem connection number with InteliSys starter kit is available in ComAp for presentation purposes: ys

    phone number: +420 284 825 909

  • InteliCommunicationGuide, ComAp February 2005 16 InteliCommunicationGuide February 05.pdf

    Modem call back The costs of phone connection are on the genset (controller) side.

    Connection It is necessary to use IG-MU for Modem callback function tick Connection via IG-MU in WinEdit. All other features and equipment is the same like for usual modem connection.

    MODEM RS232MODEMRS232

    Telephonenumber

    Callbacknumber

    IG-MUPC

    Accesscode

    IG-CU

    IG-C

    OMCAN

    1. Open Modem callback connection in WinEdit and set:

    Access code Telephone number Call back phone number

    2. WinEdit sends message with Callback phone number to controller and stays in Waiting for callback mode.

    3. Controller opens connection data connection and then operator sees standard WinEdit screens.

  • InteliCommunicationGuide, ComAp February 2005 17 InteliCommunicationGuide February 05.pdf

    Internet Ethernet Connection

    INTERNET

    iG-CU(iS-CU)

    RS232 PC

    PC

    PC

    PC

    IG-IB

    Controllers Controllers IG-CU IS-CU ID-DCU Connection applicable YES YES YES

    Equipment Equipment needed Controller side InternetBridge (IG-IB) unit configured for Ethernet

    connection (Ethernet connection firmware); Internet connection with visible IG-IB

    Connection Ethernet PC side Internet connection

    Available software Software WinEdit MultiEdit Supervisor IGS-Log Third party SW Applicable YES YES NO YES NO

    Features (with WinEdit software)

    On-

    line

    Gen

    set

    cont

    rol

    Con

    trol

    ler

    conf

    igur

    atio

    n

    Rea

    d G

    ense

    t va

    lues

    Rea

    d hi

    stor

    y

    Firm

    war

    e pr

    ogra

    mm

    ing

    Arc

    hive

    file

    s up

    load

    /dow

    nloa

    d

    Con

    nect

    ion

    spee

    d [B

    /s]

    LAN YES YES YES YES YES** YES VERY HIGH* Internet YES YES YES YES YES** YES MEDIUM* * IG-IB communication is typically faster than modem:

    - when is IG-IB connected to controller via CAN and LAN - 3000 Bps - when is IG-IB connected to controller via RS232 and LAN - 1200 Bps - when is IG-IB connected to controller via CAN and Internet - ~500 Bps - when is IG-IB connected to controller via RS232 and Internet - ~500 Bps.

    ** Possible, but not recommended due to risk of crash of programming if the communiccation is lost.

    Connection from WinEdit For connection from WinEdit see chapter Open and close the communication. In WinEdit set:

    Internet bridge type of connection Access code Connection via CAN check if CAN connection to IG-IB is used

  • InteliCommunicationGuide, ComAp February 2005 18 InteliCommunicationGuide February 05.pdf

    iG-IB IP address Note that IP address you set in WinEdit can be different from the IP address of iG-IB (when the iG-IB IP address is not public). It depends on gateway setting.

    IG-IB GATEWAY InternetGATEWAY

    IG-IB IP address Gateway IP address

    PCWinEdit

    IP addressfrom WinEdit

    COMPANY ETHERNET

    One controller - RS232 In this case no dongle is necessary. One unit could be also connected via CAN interface.

    INTERNET

    ETHERNET

    IG-C

    U D

    ON

    GLE

    MO

    DEM

    IB C

    ON

    FIG

    POWERCAN

    iG-IB iG-CU(iS-CU)RS232

    LED 1 2

    LED 3 4 5 6 LED

    Two controllers CAN / Ethernet connection The dongle must be used. The type of iG-IB dongle limits number of accessible controllers.

    INTERNET

    ETHERNET

    IG-C

    U D

    ON

    GLE

    MO

    DE

    MIB

    CO

    NFI

    G

    POWERCAN

    iG-IB

    iG-CU(iS-CU)iG-

    CO

    M

    iG-CU(iS-CU)iG-

    CO

    M

    CAN BUS

    DO

    NG

    LE

    LED 1 2

    LED 3 4 5 6 LED

    Hint: In the case of InteliSys controller is IG-IB connected to CAN2 bus.

    Max four PCs can be connected to one iG-IB at once

    INTERNET

    iG-CU(iS-CU)

    RS232 PC

    PC

    PC

    PC

    IG-IB

    IP X.X.X.A

  • InteliCommunicationGuide, ComAp February 2005 19 InteliCommunicationGuide February 05.pdf

    It is possible to connect additional 2xiG-IB + 1 IG-MU via CAN bus.

    INTERNET

    IG-CU RS232

    IG-COM

    IG-IB

    IG-IB

    IG-MU

    CAN

    IG-IBPC

    PC

    PC

    PC

    RS232

    CAN - Addr.1

    CAN - Addr.2

    Interface

    IP= X.X.X.A

    IP= X.X.X.B

    IP= X.X.X.C

    MODEMRS232

    Hint: When three IG-IB are connected to controller then 3 x 4 = 12 PC can communicate (open connection) simultaneously.

    It is possible to connect additional iG-IB+ 2xIG-MU via CAN bus.

    Each iG-IB must have its unique IP address.

    Training internet connection In ComAp is continuously running InteliSys SPtM starter kit with IG-IB. It is possible to open connection as follows:

    Controller: InteliSys Addr.: 1 Type connection: Internet bridge IB connected via CAN Access code = 0 Internet bridge address: 195.122.194.91

    The same InteliSys is available via analog modem on phone number +420 284 825 909.

  • InteliCommunicationGuide, ComAp February 2005 20 InteliCommunicationGuide February 05.pdf

    Internet Dialup Connection

    INTERNET

    iG-CU(iS-CU)

    RS232 PC

    PC

    PC

    PC

    IG-IB

    Controllers Controllers IG-CU IS-CU Connection applicable YES YES

    Equipment Equipment needed Controller side InternetBridge (IG-IB) unit configured for Dialup

    connection (Dialup firmware); Dialup internet connection

    Connection Ethernet PC side Internet connection

    Available software Software WinEdit MultiEdit Supervisor IGS-Log Third party SW Applicable YES YES NO YES NO

    Features (with WinEdit software)

    On-

    line

    Gen

    set

    cont

    rol

    Con

    trol

    ler

    conf

    igur

    atio

    n

    Rea

    d G

    ense

    t va

    lues

    Rea

    d hi

    stor

    y

    Firm

    war

    e pr

    ogra

    mm

    ing

    Arc

    hive

    file

    s up

    load

    /dow

    nloa

    d

    Con

    nect

    ion

    spee

    d [B

    /s]

    Available YES YES YES YES YES* YES MEDIUM * Possible, but not recommended due to risk of crash of programming if the communication is lost.

    Dialup connection

    One controller - RS232 ETHERNET

    DONG

    LE

    MO

    DEM

    IBCO

    NFIG

    POWERCAN

    iG-IBiG-CU(iS-CU)

    RS232

    LED 1 2

    LED 3 4 5 6 LED

    MODEMRS232

    IG-C

    U

  • InteliCommunicationGuide, ComAp February 2005 21 InteliCommunicationGuide February 05.pdf

    More controllers - CAN ETHERNET

    IG-C

    UDO

    NGLE

    MO

    DEM

    IBCO

    NFIG

    POWERCAN

    iG-IB

    iG-CU(iS-CU)iG-

    COM

    iG-CU(iS-CU)iG-

    COM

    CAN BUS

    DONG

    LE

    LED 1 2

    LED 3 4 5 6 LED

    MODEMRS232

    Internet Dialup connection (Internet callback)

    Connection

    IG-CUIS-CU

    RS232IG-IBMODEM RS232MODEMRS232

    Telephonenumber

    Callbackemail Access

    code

    PCWinEdit

    1. Open Internet callback connection in WinEdit and set: Access code Telephone number Call back email

    2. WinEdit (PC) sends message with Call back email address to IG-IB.

    3. IG-IB opens connection and via modem (Internet Service Provider) sends empty email containing actual IP address to PC.

    4. IG-IB stays in Waiting for

    callback mode for 300 sec.

  • InteliCommunicationGuide, ComAp February 2005 22 InteliCommunicationGuide February 05.pdf

    5. Operator copies IP address to Waiting screen and Opens connection on charge to local ISP (Internet Service Provider).

    6. Then operator sees standard WinEdit screens.

    Note: IP address of the same genset site can be different from case to case.

  • InteliCommunicationGuide, ComAp February 2005 23 InteliCommunicationGuide February 05.pdf

    Active Call Controllers Controllers IG-CU IS-CU Connection applicable YES YES

    Equipment Same as for Modem connection.

    Available software Software WinEdit MultiEdit Supervisor IGS-Log Third party SW Applicable YES NO NO NO YES (MODBUS)

    Function When active calls (see WinEdit manual) are activated for alarms on site (warning, shut-down) Controller calls to the preselected telephone number and sends the AIG or AIS archive file. WinEdit on the PC side must be running and waiting for active call.

    Terminal attempt order for active call 1) Analog / ISDN modem connected to RS232 2) Analog / ISDN modem connected to IG-MU via CAN 3) GSM modem connected to RS232 4) GSM modem connected to IG-MU via CAN

  • InteliCommunicationGuide, ComAp February 2005 24 InteliCommunicationGuide February 05.pdf

    SMS Active Call Controllers Controllers IG-CU IS-CU Connection applicable YES YES

    Equipment Equipment needed Controller side GSM Modem or IG-MU + GSM ModemConnection GSM PC side GSM Mobile Phone

    Function When SMS active calls (see IG/IS manuals) are activated for alarms on site (warning, shut-down) Controller sends SMS message to the predefined GSM number.

    Terminal attempt order for SMS active call 1) GSM modem connected to RS232 2) GSM modem connected to IG-MU via CAN

    Example SMS in format #Gen-set name:AL=(Wrn PrimWater temp, !Emergency stop) is sent in case that the primary water temperature exceeded the warning limit and Emergency stop input has been deactivated.

  • InteliCommunicationGuide, ComAp February 2005 25 InteliCommunicationGuide February 05.pdf

    Active e-mail (SMS e-mail) Controllers Controllers IG-CU IS-CU Connection applicable YES YES

    Equipment Equipment needed Controller side InternetBridge (IG-IB) unit configured for Ethernet

    connection or Dialup connection Connection Internet PC side e-mail message box (GSM mobile phone for SMS

    e-mail)

    Function When active e-mails (see IG/IS manuals) are activated for alarms on site (warning, shut-down) Controller sends e-mail message to the predefined e-mail address.

    Terminal attempt order for SMS active call 1) IG-IB connected to RS232 and internet connection currently active 1 2) IG-IB connected via CAN (address 2) and internet connection currently active 1 3) IG-IB connected via CAN (address 1) and internet connection currently active 1 4) IG-IB connected to RS232 and internet connection currently inactive 2 5) IG-IB connected via CAN (address 2) and internet connection currently inactive 2 6) IG-IB connected via CAN (address 1) and internet connection currently inactive 2 1 For IG-IB connected to Internet via leased line always active; For IG-IB connected to Internet using dial-up connection active only when IG-IB is connected to Internet provider. 2 Only for dial-up connection when IG-IB is not connected to Internet provider.

    Sample of active e-mail (from controller) You should use WinEdit and set Setpoints Act.cals/SMS AcallCHxType = E-MAIL and specify the e-mail address if you want to send active messages from controller using e-mail.

  • InteliCommunicationGuide, ComAp February 2005 26 InteliCommunicationGuide February 05.pdf

    Example of active E-mail for Ethernet - LAN connection iG-IB ----------------------------------------------- IP address: 192.168.1.10 Connection: Ethernet LAN Controller ----------------------------------------------- Name: InteliSys Serial number: 06F20093 SW branch: Standard SW version: 2.7 Application: SPtM Appl. version: 2.7 Time: 15:21:06 Date: 13/06/03 Alarm list ----------------------------------------------- !Sd SD 11 History events ----------------------------------------------- 0 13/06/03 15:21:05 NotReady -1 13/06/03 15:21:02 Sd SD 11 -2 13/06/03 15:20:56 Running -3 13/06/03 15:20:46 Started -4 13/06/03 15:20:44 Start -5 13/06/03 15:20:40 Ready -6 13/06/03 15:17:18 Passw3 entered -7 13/06/03 14:58:37 NotReady -8 13/06/03 14:58:37 PickupFault -9 13/06/03 14:58:37 Ready -10 13/06/03 14:58:33 Stop -11 13/06/03 14:58:03 Cooling -12 13/06/03 14:58:03 RemControlUART -13 13/06/03 14:52:11 Running -14 13/06/03 14:52:01 Started -15 13/06/03 14:51:59 Start -16 13/06/03 14:51:59 RemControlUART -17 13/06/03 14:37:27 Ready -18 13/06/03 14:37:21 Switched On -19 11/06/03 12:29:47 Ready Example of active E-mail for Dialup connection iG-IB ----------------------------------------------- IP address: 192.168.1.10 Connection: Dialup (until 10:52:05) the rest of message is the same like in Ethernet LAN connection example above. Hint: IG-IB does not respond e-mails which are sent to iG-IB mailbox.

    Active call EML-SMS You should set Setpoints Act.cals/SMS AcallCHxType = EML-SMS and specify the e-mail address of a mobile phone if you want to send active messages from controller using SMS e-mail. The Active call EML-SMS service informs the user of mobile phone about current items in the Alarm list.

  • InteliCommunicationGuide, ComAp February 2005 27 InteliCommunicationGuide February 05.pdf

    Example of active EML-SMS IS_ABC: B:AL=(Sd Water Temp,Wrn Water Temp,!Emerg Stop,ActCallCH1Fail) Hint: EML-SMS channel setting depends on local GSM provider. Should be e.g. [email protected] for Eurotel Czech Republic.

    E-mail box for tests It is possible to use following data for active E-mail testing, before you create your own Mailbox. Refer to chapter Ethernet-LAN configuration: Item 5. Domain Name Servers and Item 6. E-mail Primary DNS: 212.20.96.34 Secondary DNS: 212.20.96.38 SMTP Server: smtp.volny.cz iG-IB Mailbox: [email protected]

  • InteliCommunicationGuide, ComAp February 2005 28 InteliCommunicationGuide February 05.pdf

    SMS Message Control

    GSMModem

    RS 232

    You can control and setup the Genset using SMS messages from your mobile phone. For detail description of SMS control messages see the IS-CU user guides chapter SMS message format.

    Controllers Controllers IG-CU IS-CU Connection applicable NO YES

    Equipment Equipment needed Controller side GSM Modem or IG-MU + GSM ModemConnection GSM PC side GSM Mobile Phone

    Features

    On-

    line

    Gen

    set

    cont

    rol

    Con

    trol

    ler

    conf

    igur

    atio

    n

    Rea

    d G

    ense

    t va

    lues

    Rea

    d hi

    stor

    y

    Firm

    war

    e pr

    ogra

    mm

    ing

    Arc

    hive

    file

    s up

    load

    /dow

    nloa

    d

    Con

    nect

    ion

    spee

    d

    Available YES YES YES NO NO NO LOW

  • InteliCommunicationGuide, ComAp February 2005 29 InteliCommunicationGuide February 05.pdf

    Terminal connection

    ModemPCIG-CUIS-CU

    Modem PC

    pcANYWHEREWinEdit/MultiEdit

    pcANYWHERE

    Controllers Controllers IG-CU IS-CU Connection applicable YES YES

    Equipment Equipment needed Controller side Local connection + PC terminal software running

    (e.g. pcANYWHERE) + WinEdit installed + modem

    Connection Phone line PC side Modem + terminal SW

    Function This way you can remote handle local PC and remotely start WinEdit/MultiEdit software on local computer and make remote software upgrade or another procedures. See website Symantec Enterprise Solutions

  • InteliCommunicationGuide, ComAp February 2005 30 InteliCommunicationGuide February 05.pdf

    Modbus connection Modbus protocol was implemented into the controllers to enable to the customer to design its own supervision software.

    Protocol support MODBUS supported in IG-CU IS-CU IG-MU IG-IB Connection applicable YES YES YES NO

    Protocol implemented The protocol is decried in chapter Modbus protocol description.

    Important setpoints in controller Basic settings: RS232 mode [ Standard , Modbus ] Communication protocol switch between Standard (WinEdit/MultiEdit) communication protocol and controller Modbus protocol. Hint: For WinEdit / MultiEdit communication adjust RS232 mode = Standard. There are three possibilities of Modbus connection to single controller : direct via RS232, RS422, RS485 or via Modem - see chapter Single set application.

    485

    232

    RS 232

    Modbus orMultiEdit

    PC

    232

    485

    RS 232

    232

    485

    RS 232

    232

    485

    RS 232 RS 485

  • InteliCommunicationGuide, ComAp February 2005 31 InteliCommunicationGuide February 05.pdf

    CAN 1 CAN 1Modbusterminal

    RS 232Modem

    or GSM

    Modem

    Modem or

    GSM Modem

    RS 232R

    S 23

    2

    RS

    232

    RS 485RS 232

    PC

    PC

    iG-COM

    iG - IOM iG - IOM

    iG-COM

    CAN 0

    iG_MU RS232

    RS422

    232

    485

    485

    232

    232

    485

    RS 422/485 communication line has to be terminated by 120 ohms resistors on both end follow converter user manual. RS 485 communication can be used for more controller monitoring and controlling via WinEdit or MultiEdit. Power management function is not available when IG-COM units are not connected.

    Modbus communication via IG-MU Modbus communication is available from IG-MU of sw version 1.9 Before IG-MU Modbus communication connect Modbus jumper in IG-MU unit.

  • InteliCommunicationGuide, ComAp February 2005 32 InteliCommunicationGuide February 05.pdf

    Modbus protocol description Introduction Direct connection: RS232, RS422, RS485 Modem connection 9600 bps, 19200 bps (ID-only), 38400 bps(ID-only), 8 data bits, 1 stop bit, no parity Transfer mode RTU Function 3 (Read Multiply Registers) Function 6 (Write Single Register) Function 16 (Write Multiply Registers) The response to an incoming message is sent with minimum 4.096 ms delay after message reception The complete description of Modbus communication protocol can be found in Modbus Protocol Reference Guide PI-MBUS-300 and Open Modbus Specification Release 1.0. Both documents are available from web.

    Communication object vs. Register All the data intended for communication has its representation as communication objects in the controller. The communication object is represented by the n-byte array in the controller memory and identified by the unique 16-bit communication object number. The register, according to Modbus communication protocol, represents a two-byte data and in communication functions is referenced by 16-bit register address. Further in the description of communication functions the communication object number will always be used as a register address and length of the communication object will be expressed by number of registers. Just one communication object can be read or written by one communication function.

    Data reading The function Read Multiply Registers has to be used for data reading. The terminal sends a query and from the controller receives either the normal response containing the requested data or the exceptional response indicating a read error. Version of MODBUS Inteli implementation: 1.3, 16.9.2004 Query: Byte Meaning Note 0 Controller address 1 to 32 1 3 Function code 2 3

    Communication object number - upper byte (MSB) - lower byte (LSB)

    See List of communication objects

    4 5

    Communication object length expressed by the number of registers - upper byte (MSB) - lower byte (LSB)

    Greater than 0

    6 7

    Check field CRC - lower byte (LSB) - upper byte (MSB)

    See Check field calculation

  • InteliCommunicationGuide, ComAp February 2005 33 InteliCommunicationGuide February 05.pdf

    Normal response: Byte Meaning Note 0 Controller address Same as in the query 1 3 Same as in the query 2 Length of read data in bytes (L) Number of registers 2 3 4

    Data of the 1st register - upper byte (MSB) - lower byte (LSB)

    5 6

    Data of the 2nd register - upper byte (MSB) - lower byte (LSB)

    L + 1 L + 2

    Data of the last register - upper byte (MSB) - lower byte (LSB)

    L + 3 L + 4

    Check field CRC - lower byte (LSB) - upper byte (MSB)

    See Check field calculation

    Exceptional response: Byte Meaning Note 0 Controller address Same as in the query 1 131 Function code + 128 2 2 See Error list 3 4

    Check field CRC - lower byte (LSB) - upper byte (MSB)

    See Check field calculation

    Data writing All data can be written by the function Write Multiply Registers. Data up to 2 bytes can be written by the function Write Single Register too. The terminal sends a query containing a written data and the controller either confirms it (normal response) or refuses it (exceptional response). a) Write Multiply Registers Query: Byte Meaning Note 0 Controller address 1 to 32 1 16 Function code 2 3

    Communication object number - upper byte (MSB) - lower byte (LSB)

    See List of communication objects

    4 5

    Communication object length expressed by the number of registers - upper byte (MSB) - lower byte (LSB)

    Greater than 0

    6 Length of written data in bytes (L) Number of registers 2 7 8

    Data of the 1st register - upper byte (MSB) - lower byte (LSB)

    9 10

    Data of the 2nd register - upper byte (MSB) - lower byte (LSB)

    L + 5 L + 6

    Data of the last register - upper byte (MSB) - lower byte (LSB)

    L + 7 L + 8

    Check field CRC - lower byte (LSB) - upper byte (MSB)

    See Check field calculation

  • InteliCommunicationGuide, ComAp February 2005 34 InteliCommunicationGuide February 05.pdf

    Standard response: Byte Meaning Note 0 Controller address Same as in the query 1 16 Same as in the query 2 3

    Communication object number - upper byte (MSB) - lower byte (LSB)

    Same as in the query

    4 5

    Communication object length expressed by the number of registers - upper byte (MSB) - lower byte (LSB)

    Same as in the query

    6 7

    Check field CRC - lower byte (LSB) - upper byte (MSB)

    See Check field calculation

    Exceptional response: Byte Meaning Note 0 Controller address Same as in the query 1 144 Function code + 128 2 2 See Error list 3 4

    Check field CRC - lower byte (LSB) - upper byte (MSB)

    See Check field calculation

    b) Write Single Register Query: Byte Meaning Note 0 Controller address 1 to 32 1 6 Function code 2 3

    Communication object number - upper byte (MSB) - lower byte (LSB)

    See List of communication objects

    4 5

    Data - upper byte (MSB) - lower byte (LSB)

    6 7

    Check field CRC - lower byte (LSB) - upper byte (MSB)

    See Check field calculation

    Standard response: Byte Meaning Note 0 Controller address Same as in the query 1 6 Same as in the query 2 3

    Communication object number - upper byte (MSB) - lower byte (LSB)

    Same as in the query

    4 5

    Data - upper byte (MSB) - lower byte (LSB)

    Same as in the query

    6 7

    Check field CRC - lower byte (LSB) - upper byte (MSB)

    See Check field calculation

    Exceptional response: Byte Meaning Note 0 Controller address Same as in the query 1 134 Function code + 128

  • InteliCommunicationGuide, ComAp February 2005 35 InteliCommunicationGuide February 05.pdf

    2 2 See Error list 3 4

    Check field CRC - lower byte (LSB) - upper byte (MSB)

    See Check field calculation

    Check field calculation The check field allows the receiver to check the validity of the message. The check field value is the Cyclical Redundancy Check (CRC) based on the polynomial x16+x15+x2+1. CRC is counted from all message bytes preceding the check field. The algorithm of CRC calculation is introduced below on an example of a C language function. unsigned short count_CRC(unsigned char *addr, int num) { unsigned short CRC = 0xFFFF; int i; while (num--) { CRC ^= *addr++; for (i = 0; i < 8; i++) { if (CRC & 1) { CRC >>= 1; CRC ^= 0xA001; } else { CRC >>= 1; } } } return CRC; }

    Data types The following table contains the communication objects data types and their representation in the data part of the communication function. Data type Meaning Number of

    registers Data part of the communication function1

    Integer8 Signed integer 8 bits 1 MSB1 = sign extension LSB1 LSB1 = comm. object value

    Unsigned8 Unsigned integer 8 bits 1 MSB1 = 0 LSB1 = comm. object value

    Integer16 Signed integer 16 bits 1 MSB1 = comm. object value, bits 15-8 LSB1 = comm. object value, bits 7-0

    Unsigned16 Unsigned integer 16 bits 1 MSB1 = comm. object value, bits 15-8 LSB1 = comm. object value, bits 7-0

    Integer32 Signed integer 32 bits 2 MSB1 = comm. object value, bits 31-24 LSB1 = comm. object value, bits 23-16 MSB2 = comm. object value, bits 15-8 LSB2 = comm. object value, bits 7-0

    1 MSBx = register x, bits 15-8

    LSBx = register x, bits 7-0

  • InteliCommunicationGuide, ComAp February 2005 36 InteliCommunicationGuide February 05.pdf

    Unsigned32 Unsigned integer 32 bits 2 MSB1 = comm. object value, bits 31-24 LSB1 = comm. object value, bits 23-16 MSB2 = comm. object value, bits 15-8 LSB2 = comm. object value, bits 7-0

    Binary8 Binary number 8 bits 1 MSB1 = 0 LSB1 = comm. object value

    Binary16 Binary number 16 bits 1 MSB1 = comm. object value, bits 15-8 LSB1 = comm. object value, bits 7-0

    Binary32 Binary number 32 bits 2 MSB1 = comm. object value, bits 31-24 LSB1 = comm. object value, bits 23-16 MSB2 = comm. object value, bits 15-8 LSB2 = comm. object value, bits 7-0

    Char ASCII character 1 MSB1 = 0 LSB1 = comm. object value

    List String list 1 MSB1 = 0 LSB1 = comm. object value

    ShortStr ASCII string of max. length of 15 characters (zero terminated string)

    8 MSB1 = 1. character of the string LSB1 = 2. character of the string MSB2 = 3. character of the string LSB2 = 4. character of the string

    LongStr ASCII string of max. length of 31 characters (zero terminated string)

    16 MSB1 = 1. character of the string LSB1 = 2. character of the string MSB2 = 3. character of the string LSB2 = 4. character of the string

    Date Date 2 MSB1 = BCD(day) LSB1 = BCD(month) MSB2 = BCD(year) LSB2 = 0 example: MSB1 = 0x18 LSB1 = 0x04 MSB2 = 0x01 LSB2 = 0 Date = 18.4.(20)01

    Time Time 2

    MSB1 = BCD(hour) LSB1 = BCD(minute) MSB2 = BCD(second) LSB2 = 0 example: MSB1 = 0x20 LSB1 = 0x24 MSB2 = 0x02 LSB2 = 0 Time = 20:24:02

    Domain Field n bytes C-declaratione: unsigned char x[n]

    n MSB1 = x[0] LSB1 = x[1] MSB2 = x[2] LSB2 = x[3] n is even number: MSBm-1 = x[n-2] LSBm = x[n-1] n is odd number: MSBm-1 = x[n-1] LSBm = 0

    List of communication objects Communication objects can be splitted into two groups:

  • InteliCommunicationGuide, ComAp February 2005 37 InteliCommunicationGuide February 05.pdf

    1. Communication objects dependent on the application type (SSB, SPM, SPtM, MEXT, MINT, ). Their list is stated in the Controller user guide in the section Value and setpoints codes.

    2. Communication objects independent on the application type. The description of these communication objects follows.

    Communication status Communication object number: 24571 Operation: Read only Data type: Binary32 Meaning: Bit 0 Reserve (= 0).

    Bit 1 Invalid controller software (based on CRC). Bit 2 Invalid controller configuration (based on CRC). Bit 3 In the event history is present at least one unread record. Bit 4 P type parameters are invalid.

    P type parameters are representing the controller setpoints. Values of these parameters can be set from connected terminals. If these parameters are invalid, the application functions are blocked. Parameters recovery is needed.

    Bit 5 R type parameters are invalid. R type parameters are representing the data, that is only initialized from connected terminals, but its updating is made by the controller itself (e.g. statistic or time and date). If these parameters are invalid, their change from the controller is blocked. Parameters recovery is needed.

    Bit 6 The event history was cleared. Bit 7 The event history was filled up at least once. Bit 8 P type parameter change occured. Bit 9 R type parameter change occured. Bit 10 Controller type see table below. Bit 11 Alarm list not empty. Bit 12 Alarm list change. Bit 13 New item added into alarm list. Bit 14 Internal controller terminal is locked up for parameter change. Bit 15 Invalid configuration format. Bit 16 Diagnostic codes change. Bits 20-17 Reserve (= 0) Bits 22-21 Password level for Setpoints and Commands write. Bit 23 Controller was initiated. Bits 28-24 Communication module version. Bits 29 Remote terminal is connected. Bits 30 Controller type see table below. Bits 31 Reserve (= 0) Controller type

    Bit 30 Bit 10 Controller 0 0 InteliSys 0 1 InteliGen 1 0 InteliLite 1 1 InteliDrive

    Controller address Communication object number: 24537 Operation: Read, write Data type: Unsigned8

  • InteliCommunicationGuide, ComAp February 2005 38 InteliCommunicationGuide February 05.pdf

    Meaning: The controller address serves as an unique identification for communication with the controller. The address has to

    be in the range from 1 to 32.

    Communication protocol Communication object number: 24522 Operation: Read, write Data type: Unsigned8 Meaning: The communication protocol used for the communication through RS232 connector:

    0 Company (standard) communication protocol. 1 Modbus communication protocol.

    Note: The communication protocol setup is made as a result of data updating. The write is not confirmed for the

    connected (RS232) terminal.

    Write password setting Communication object number: 24524 Operation: Write only Data type: Unsigned16 Meaning: Modification of the password protected parameters is enabled by setting of the correct password. Then the

    modification of the protected parameters is unblocked for 5 minutes. With every errorless write is this time prolonged for next 5 minutes. The writing of protected parameters can be blocked immediately by setting an invalid password.

    Write password changing level 1 Communication object number: 24513 Operation: Write only Data type: Unsigned16 Meaning: The password level 1 change. The change is conditioned by the current level 1 or 3 password knowledge. With

    respect to the internal controller terminal, the password has to have the value from 0 to 9999.

    Write password changing level 2 Communication object number: 24514 Operation: Write only Data type: Unsigned16 Meaning: The password level 2 change. The change is conditioned by the current level 2 or 3 password knowledge. With

    respect to the internal controller terminal, the password has to have the value from 0 to 9999.

  • InteliCommunicationGuide, ComAp February 2005 39 InteliCommunicationGuide February 05.pdf

    Write password changing level 3 Communication object number: 24549 Operation: Write only Data type: Unsigned16 Meaning: The password level 3 change. The change is conditioned by the current level 3 password knowledge. With respect

    to the internal controller terminal, the password has to have the value from 0 to 9999.

    Last error of the Modbus communication Communication object number: 24523 Operation: Read only Data type: See Error list Meaning: If an error comes up when processing the Modbus terminal query, the controller returns an exceptional response.

    The Modbus terminal can find out the error type by reading this communication object.

    Current time Communication object number: 24554 Operation: Read, write Data type: Time Meaning: Current controller time can be determined or set using this communication object.

    Current date Communication object number: 24553 Operation: Read, write Data type: Date Meaning: Current controller date can be determined or set using this communication object.

    Action - command Communication object number: 24521 Operation: Write only Data type: Unsigned16 Meaning: An action described in the following table can be started by writing this communication object. Bits 7-0 of the

    written value contain the action code and bits 15-8 contain the ones complement of the action code. The corresponding password must be set prior to Action command see Tab 15 in CFG_IMG list.

    Action code Action Value written

  • InteliCommunicationGuide, ComAp February 2005 40 InteliCommunicationGuide February 05.pdf

    Action code Action Value written 1 Engine start 0xFE01 2 Engine stop 0xFD02 3 Horn reset 0xFC03 4 Fault reset 0xFB04 5 Generator Circuit Breaker closing 0xFA05 6 Generator Circuit Breaker opening 0xF906 7 Mains Circuit Breaker closing 0xF807 8 Mains Circuit Breaker opening 0xF708 9 Generator Circuit Breaker closing/opening 0xF609 10 Mains Circuit Breaker closing/opening 0xF50A 11 (IS, ID only) Command for MODE > 0xF40B 12 (IS, ID only) Command for MODE < 0xF30C 126 (ID only) LOCAL mode On 0x817E 127 (ID only) LOCAL mode Off 0x807F

    Controller serial number Communication object number: 24548 Operation: Read only Data type: Domain

    MSB1 = SN0, LSB1 = SN1, MSB2 = SN2, LSB2 = SN3 e.g.: MSB1 = 0x07, LSB1 = 0x10, MSB2 = 0x00, LSB2 = 0xF4 serial number: 071000F4

    Meaning: The serial number is an unique identification of a given controller.

    Alarm list Communication object number: 24545 Operation: Read only Data type:

    An array of 16 Unsigned16 values Meaning: The alarm list can contains up to 16 items. All items that have their bits 15-12 set to value 0xF and following has to

    be ignored ! The meaning of particular item values is given according to the table 11 in the controller description, that is generated using the program CFG_IMG.

    Remote communication access code setting Communication object number: 24534 Operation: Write only Data type:

    Unsigned16 up to IG software version 5.1 (ig_5_1.mhx) and IS 2.1 (is_2_1.mhx) ShortStr from up to IG software version 5.2 (ig_5_2.mhx) and IS 2.2 (is_2_2.mhx)

    Meaning: If a terminal establishes a phone connection with the controller, it has to enter the access code to the controller at

    first. Only then any data can be read or written. The access code is valid until the connection is cancelled.

    Remote communication access code changing Communication object number: 24535

  • InteliCommunicationGuide, ComAp February 2005 41 InteliCommunicationGuide February 05.pdf

    Operation: Write only Data type:

    Unsigned16 up to IG software version 5.1 (ig_5_1.mhx) and IS 2.1 (is_2_1.mhx) ShortStr from up to IG software version 5.2 (ig_5_2.mhx) and IS 2.2 (is_2_2.mhx)

    Meaning: The access code serves for unblocking of the remote (phone, SMS) communication with the controller. The change

    of the access code is conditioned by the write password knowledge.

    Active call termination Communication object number: 24540 Operation: Write only Data type:

    Unsigned8 Meaning: The controller can under certain conditions (e.g. after engine shutdown) establish a connection with a remote

    terminal perform an active call. The remote terminal can after that (without access code knowledge) read the data needed for the analysis of the issued situation. The data transfer has to be terminated by the terminal by writing this communication object. After a successful transfer it writes the value 1, otherwise 0. If a new active call request comes up during the data transfer, the controller doesnt return the normal response, but the exceptional one (communication object 24523 has the value 237.0.0.8 - See Error list). In this case the controller doesnt terminate the connection, but it awaits the request from the terminal.

    Controller identification string Communication object number: 24501 Operation: Read only Data type:

    LongStr Meaning: Controller identification string.

    Values multipack Communication object number: 24502 Operation: Read only Data type:

    Domain Meaning: InteliDrive controller sends all values that are configured in History record.

    Diagnostic codes list Communication object number: 24478 Operation: Read only Data type:

    Domain Meaning: Diagnostic codes list contains 8 items, 6 bytes each with following format: Bity18-0 Error code SPN, or Fault code.

    Bity23-19 Error meaning - FMI code.

  • InteliCommunicationGuide, ComAp February 2005 42 InteliCommunicationGuide February 05.pdf

    Bity30-24 Number of Error occurrences. Bit31 Indication of not confirmed fail. Bity39-32 Do not use (ComAp internal). Bit40 Item validity; the first (= 0) means end of the list. Bit41 Item was confirmed. Bity47-42 Rezerva (= 0)

    Error list If the controller encounters an error when processing the query, it returns the exceptional response instead of the normal one to the terminal. An exception has always the value 2 (Illegal Data Address). After receiving the exceptional response, the terminal should read the communication object 24523 containing the last error specification. The meaning of an error can be found out from the following table. MSB1 LSB1 MSB2 LSB2 Meaning 0 0 0 0 No error. 0 0 2 6 Comm. object nonexistent. 0 0 1 6 Illegal access:

    Read (write) of the comm. object intended only for write (read). 253 0 0 8 No more unread records in event history. 252 0 0 8 Parameter not defined in controller configuration. 251 0 0 8 Bad write data length. 250 0 0 8 Invalid password. 247 0 0 8 Invalid controller configuration. 240 0 0 8 Operation cannot be performed now, the terminal has to repeat the request.

    This error can occur when an operation with EEPROM memory (parameter write, history record read) is required at the same time while an internal EEPROM write cycle takes place.

    238 0 0 8 Write cannot be performed power supply failure detected. 237 0 0 8 Another active call request is present.

    This error code can be returned by the controller as the response to the comm. object 24540 write active call termination.

    235 0 0 8 This error is reported by iG-MU module (Modem Bridge) in the case of a connection failure between the module and the addressed controller. The terminal can evaluate this error as a communication timeout with the controller.

    234 0 0 8 Write cannot be performed periphery not responding. 233 0 0 8 Write cannot be performed parameter nonexistent in any periphery. 232 0 0 8 Bad access code for communication from a remote terminal. 231 0 0 8 Invalid controller address: value out of range 1 to 32 or already used. This

    error is a reaction on comm. object 24537 write. 229 0 0 8 Undefined action. A reaction on comm. object 24521 write. 228 0 0 8 Action (although defined) cannot be performed. A reaction on comm. object

    24521 write. 227 0 0 8 Written object value is not acceptable.

    How create actual Communication object list For Inteligen and InteliSys controller use WinEdit menu command Controller Generate Cfg Image There are two ways to create Object list ( see Appendix 1) For InteliLite and InteliDrive controller communication objects specification use command Data export.

  • InteliCommunicationGuide, ComAp February 2005 43 InteliCommunicationGuide February 05.pdf

    Modbus communication examples

    Battery voltage reading Request: 0103201500019E0E (in HEX) 01 = Controller address 03 = Modbus function number (reading) 2015 = 2015 HEX = 8213 DEC = object number for Battery voltage 0001 = Communicastion object length expressed by the number of registers 9E0E = CRC (see Check field calculation) See chapter Data reading . Example: 8123 = Battery voltage, In Tab. 3 Values III is Type=Integer and Len=2byte, that means data type Integer16. See table Data types (it is conversion between IG a Modbus registers): Number of (Modbus) registers for Integer16 = 1, that means 0001. Response 01 03 02 00F9 7806 (in HEX) 01 = Controller address 03 = The same as in query 02 = Length of read data in bytes 00F9 = object data value =249 in decimal, but 8213 object is defined with one decimal point, see Tab. 3 (p.21). So real interpretation is 24,9 V (volts) because Dim (=dimension) of 8213 is V see Tab. 3 (p.21). The last part 7806 is CRC.

    Binary inputs reading Request 0103202B01FFC2 (in HEX) 01 = Controller address 03 = Mo