34
SPii/SPiiPlus HSSI Expansion Modules HSSI-IO16 Hardware and Software Guide Document part no. TM-0HSSI-000 Document revision no. 3.00

HSSI Expansion Modules Guide 3.00

  • Upload
    ramjoce

  • View
    40

  • Download
    3

Embed Size (px)

DESCRIPTION

ACStech80

Citation preview

Page 1: HSSI Expansion Modules Guide 3.00

SPii/SPiiPlus HSSI Expansion Modules

HSSI-IO16

Hardware and Software Guide

Document part no. TM-0HSSI-000 Document revision no. 3.00

Page 2: HSSI Expansion Modules Guide 3.00

Document revision no. 3.00 (September 2001) Document part no. TM-0HSSI-000

COPYRIGHT Copyright © 2001 ACS-Tech80 Ltd. Changes are periodically made to the information contained in this guide. The changes are published in release notes and will be incorporated into future revisions of this guide. No part of this guide may be reproduced in any form, without permission in writing from ACS-Tech80.

TRADEMARKS ACS-Tech80, PEG, and SPii are trademarks of ACS-Tech80 Ltd. Phoenix Contact is a trademark of Phoenix Contact GmbH.

Website: http://www.acs-tech80.com/ E-mail: [email protected] [email protected]

ACS-Tech80 Inc. 7351 Kirkwood Lane North, Suite 130 Maple Grove, MN 55369 USA Tel: (1) (763) 493-4080 (800-545-2980 in USA) Fax: (1) (763) 493-4089

ACS-Tech80 BV Antonie van Leeuwenhoekstraat 18 3261 LT Oud-Beijerland THE NETHERLANDS Tel: (31) (186) 623518 Fax: (31) (186) 624462

ACS-Tech80 Ltd. Ramat Gabriel Industrial Park POB 5668 Migdal Ha'Emek, 10500 ISRAEL Tel: (972) (4) 6546440 Fax: (972) (4) 6546443

NOTICE Information deemed to be correct at time of publishing. ACS-Tech80 reserves the right to change specifications without notice. ACS-Tech80 is not responsible for incidental, consequential, or special damages of any kind in connection with this document.

Refer connection, installation, maintenance, adjustment, servicing, and

operation to qualified personnel.

Page 3: HSSI Expansion Modules Guide 3.00

RECENT CHANGES TO THIS GUIDE I

SPi i /SPiiPlus HSSI Expansion Modules Guide - Document revision no. 3.00

Recent Changes to this Guide Rev. Date Sect./

Page Change ECR

Page 4: HSSI Expansion Modules Guide 3.00

CONTENTS I I I

SPi i /SPiiPlus HSSI Expansion Modules Guide - Document revision no. 3.00

CONTENTS

FIGURES

TABLES

PREFACE

1. INTRODUCTION 1-1

1.1. HSSI-IO16 COMPONENT LAYOUT 1-1

2. HSSI COMPONENTS 2-1

2.1. HSSI-HUB 2-1

2.2. HSSI CABLES 2-2

2.3. ADDRESS SWITCH SETTINGS 2-2

2.4. TERMINATION RESISTOR SWITCH SETTINGS 2-3

2.5. INDICATORS 2-3

2.6. COMMUNICATION 2-3

2.7. ERRORS AND DIAGNOSTICS 2-4

Page 5: HSSI Expansion Modules Guide 3.00

IV CONTENTS

SPii/SPiiPlus HSSI Expansion Modules Guide - Document revision no. 3.00

3. HSSI-IO16 EXPANSION MODULE 3–1

3.1. HSSI-IO16 DESCRIPTION 3–2

3.2. HSSI-IO16 SPECIFICATIONS 3–3

3.3. HSSI-IO16 MOUNTING OPTIONS 3–3

3.4. DAISY CHAIN WIRING OF MODULES 3–3

3.5. INPUT STRUCTURE 3–3

3.6. OUTPUT STRUCTURE 3–3

3.7. HSSI-IO16 CONNECTORS 3–4

3.8. DIGITAL INPUTS 3–6

3.9. DIGITAL OUTPUT CONNECTIONS 3–7

3.10. SETUP CHECKLIST 3–7

4. SOFTWARE SUPPORT 4-1

4.1. HSSI-IO16 OPERATION 4-1

4.2. DESIGNATE CHANNEL AND MODULE NUMBERS 4-2

4.3. SPIIPLUS ACSPL+ SUPPORT 4-4

4.4. HSSI MODULE INTERROGATION (GETCONF FUNCTION) 4-4

4.5. SWITCHING BETWEEN MODES (SETCONF FUNCTION) 4-5

4.6. SPIIPLUS MMI SUPPORT 4-5

4.7. SPIIPLUS MULTIDEBUGGER SUPPORT 4-7

4.8. SPIIPLUS C LIBRARY SUPPORT 4-8

5. WARRANTY 5-1

INDEX

Page 6: HSSI Expansion Modules Guide 3.00

FIGURES V

SPi i /SPiiPlus HSSI Expansion Modules Guide - Document revision no. 3.00

FIGURES

FIGURE 1-1 HSSI-IO16 component layout ................................................................................ 1-2 FIGURE 2-1 HSSI-Hub ............................................................................................................... 2-1 FIGURE 2-2 Address and Termination Resistor Switches.......................................................... 2-2 FIGURE 2-3 HSSI Connection diagram...................................................................................... 2-4 FIGURE 3-1 HSSI-IO16 Expansion Module ............................................................................. 3–1 FIGURE 3-2 HSSI-IO16 block diagram..................................................................................... 3–2 FIGURE 3-3 Input port interface ................................................................................................ 3–6 FIGURE 3-4 Output port interface ............................................................................................. 3–7 FIGURE 4-1 I/O Monitor screen ................................................................................................. 4-6 FIGURE 4-2 Select I/O Variables................................................................................................ 4-7

Page 7: HSSI Expansion Modules Guide 3.00

VI TABLES

SPii/SPiiPlus HSSI Expansion Modules Guide - Document revision no. 3.00

TABLES

TABLE 2-1 SPii HSSI Address settings ......................................................................................2-2 TABLE 2-2 HSSI Termination Resistor setting definitions.........................................................2-3 TABLE 2-3 LED indicator description ........................................................................................2-3 TABLE 3-1 Input Connector pin assignment.............................................................................. 3–4 TABLE 3-2 Output Connector pin assignment ........................................................................... 3–5 TABLE 3-3 Power Connector pin assignment............................................................................ 3–5 TABLE 3-4 RJ45 connector pin assignment............................................................................... 3–6 TABLE 4-1 Channel and module numbering ..............................................................................4-3 TABLE 4-2 SPiiPlus ACSPL+ Input/Output commands.............................................................4-4 TABLE 4-3 SPiiPlus C Library HSSI commands........................................................................4-8

Page 8: HSSI Expansion Modules Guide 3.00

PREFACE VI I

SPi i /SPiiPlus HSSI Expansion Modules Guide - Document revision no. 3.00

PREFACE

The SPii/SPiiPlus HSSI Expansion Modules Hardware and Software Guide describes the electrical interface between SPii and SPiiPlus motion controllers and HSSI Expansion Modules. Regarding operation, refer to the SPiiPlus ACSPL+ Programmer’s Guide.

Conventions Visual cues are used in this guide in an attempt to make it easier to absorb the information.

Note A note box is used for information of special interest or importance.

Warning

A warning box is used when an action must be done with great care. Otherwise personal injury or significant equipment damage can occur.

• Programming terms appearing in the text are presented in bold style.

• Programming fragments are presented in bold Courier New typeface.

Page 9: HSSI Expansion Modules Guide 3.00

VIII PREFACE

SPii/SPiiPlus HSSI Expansion Modules Guide - Document revision no. 3.00

Guide Outline Chapter 1 INTRODUCTION:

Chapter 2 HSSI COMPONENTS:

Chapter 3 HSSI-IO16 EXPANSION MODULE:

Chapter 4 SOFTWARE SUPPORT:

Related Tools SPiiPlus Series SPii (Carmel) Series

SPiiPlus C Library SPii C Library

SPiiPlus MMI SPii MMI

SPiiPlus MultiDebugger

Related Documentation SPiiPlus Series SPii (Carmel) Series

SPiiPlus PCI Hardware and Setup Guides SPiiPCI Hardware and Installation Guide

SPiiPlus ACSPL+ Programmer’s Guide SPii Software Guide

SPiiPlus MultiDebugger User’s Guide

SPiiPlus C Library Reference Guide

Note For information developed after this guide was published, please refer to the ACS-Tech80 web site (http://www.acs-tech80.com/) or contact ACS-Tech80.

Page 10: HSSI Expansion Modules Guide 3.00

INTRODUCTION 1-1

SPi i /SPiiPlus HSSI Expansion Modules Guide - Document revision no. 3.00

1. INTRODUCTION

SPiiPlus motion controllers have a unique High-Speed Synchronous Serial Interface (HSSI) bus, which facilitates expansion and provides a cost effective way to implement a distributed system.

The HSSI protocol is open for the user to design and build his own HSSI Modules to interface with the controller according to some special application needs.

The following SPiiPlus products support the HSSI bus:

• SPiiPlus PCI-4/8

• SPiiPlus PCI-DDM4

• SPiiPCI-4/8

1.1. HSSI-IO16 Component Layout The drawing below shows the usage of HSSI-IO16 module.

Page 11: HSSI Expansion Modules Guide 3.00

1-2 INTRODUCTION

SPii/SPiiPlus HSSI Expansion Modules Guide - Document revision no. 3.00

HSSI HUB

Flat 30-Pin CableJ3

Connector

SPiiPlus PCI-4/8

HSSI Cables

RJ45Connector

.

.

HSSI-IO16

.

.

.

.

.

.

.

.

HSSI-IO16

.

.

.

.

.

.

.

.

HSSI-IO16

.

.

.

.

.

.

.

.

HSSI-IO16

.

.

.

.

.

.

24 VoltPowerSupply

FIGURE 1-1 HSSI-IO16 component layout

Page 12: HSSI Expansion Modules Guide 3.00

HSSI COMPONENTS 2-1

SPi i /SPiiPlus HSSI Expansion Modules Guide - Document revision no. 3.00

2. HSSI COMPONENTS

2.1. HSSI-Hub The HSSI-Hub is a distribution board for up to four HSSI channels. The HSSI-Hub may be used as a unit between the controller and any HSSI module.

The HSSI-Hub is typically installed inside a PC where the SPiiPlus PCI / SPii PCI is located.

The HSSI-Hub has following connectors:

• One 30-pin connector to communicate with the SPiiPlus PCI-4/8 controller

• One 20-pin connector to communicate with SPiiPlus PCI-DDM4 controller

• Two 10-pin connectors to communicate with the SPii PCI controller

• Four RJ45 receptacles for HSSI Cables

FIGURE 2-1 HSSI-Hub

Page 13: HSSI Expansion Modules Guide 3.00

2-2 HSSI COMPONENTS

SPii/SPiiPlus HSSI Expansion Modules Guide - Document revision no. 3.00

2.2. HSSI Cables Cable: FTP category 5 that is commonly used for Ethernet communication.

The total cable length must be limited to 20 meters. When daisy chaining, the sum of length of all cables must be limited to 20m.

2.3. Address Switch Settings To prevent contention while transmitting data to the motion controller, each unit is allowed to transmit at specific time. Any of the 4 Addresses can be selected from the switches. The Address also defines the relevant bits for reception.

Every HSSI-IO16 unit in the chain has a different Address.

In Command Mode the HSSI-IO16, regardless of the Address assignment, interprets all 64 bits.

TREM INATION

SW1 SW2

ON

OFF

ADDRESS

SW3

FIGURE 2-2 Address and Termination Resistor Switches

TABLE 2-1 SPii HSSI Address settings

ADDRESS SW1 SW2

0 ON ON (Default)

1 ON OFF

2 OFF ON

3 OFF OFF

Page 14: HSSI Expansion Modules Guide 3.00

HSSI COMPONENTS 2-3

SPi i /SPiiPlus HSSI Expansion Modules Guide - Document revision no. 3.00

2.4. Termination Resistor Switch Settings Termination resistors should be activated in the last unit in the chain and deactivated in all the others HSSI modules.

TABLE 2-2 HSSI Termination Resistor setting definitions

SW3 Description

ON Termination resistors connected

OFF (Default) Termination resistors not connected

2.5. Indicators

TABLE 2-3 LED indicator description

Signal Color Qty Function

Input Green 16 ON while input is sourcing/sinking current. Connected on the logic side.

Output Green 16 ON while output is high. Connected on the logic side.

Power Green 1 ON while internal supply (5Vdc) is within range. Connected to the voltage-monitoring device.

Communication Green or Red

1 Green to indicate successful operation. Can be set only by the controller. Status bit OK.

Red to indicate fault detection. Can be set by the controller and by the unit. Status bit Not OK.

2.6. Communication Each SPii (Servo Processor) supports one channel of HSSI communication. The HSSI channel has four groups of 16 bits (64 bits total) of Inputs and Outputs that are read/write each 50µsec.

The HSSI signals are differential RS-485 type and allow real time communication for various types of usages as I/O expansion, interface with an encoder or a driver.

HSSI channel cables must not exceed 20 meters.

• The connection between the HSSI-Hub and the remote interface unit is shown in FIGURE 2-3.

Page 15: HSSI Expansion Modules Guide 3.00

2-4 HSSI COMPONENTS

SPii/SPiiPlus HSSI Expansion Modules Guide - Document revision no. 3.00

C O N T R O L

SE R -D O

R em ote

In terface U nit

U ser C onnector

H SSI H U B

SE R -D I

FIGURE 2-3 HSSI Connection diagram

2.7. Errors and Diagnostics Each HSSI Expansion Module monitors the HSSI communication channel integrity. If it is not OK, it will automatically turn the communication LED to red and turn off all outputs. The user can activate the module again by using the getconf function.

If this occurs check the following:

• Cable integrity

• Connection

• Power LED is green

Page 16: HSSI Expansion Modules Guide 3.00

HSSI- IO16 EXPANSION MODULE 3–1

SPi i /SPiiPlus HSSI Expansion Modules Guide - Document revision no. 3.00

3. HSSI-IO16 EXPANSION MODULE

The unit housing is an aluminum U-profile with lateral foot elements made of plastic with integrated contact to mounting rail or with flange for screw mounting.

190mm

74m

m

20 PIN

20 PIN

.

.

INPUT

OUTPUT

0

POWER

COM

3 PIN 3 PIN

RJ45RJ4520 PIN

20 PIN

ADD TER24V IN/OUT

HSSI IN / OUT

3 PIN3 PIN

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

34.5m

m

FIGURE 3-1 HSSI-IO16 Expansion Module

Page 17: HSSI Expansion Modules Guide 3.00

3–2 HSSI- IO16 EXPANSION MODULE

SPi i /SPiiPlus HSSI Expansion Modules Guide - Document revision no. 3.00

3.1. HSSI-IO16 Description The HSSI-IO16 is a basic input/output HSSI Module used to expand the number of digital I/O’s. The HSSI-IO16 is compatible with the HSSI bus and provides 16-outputs and 16-inputs at a remote location. Up to four, HSSI-IO16 modules may be daisy chained to enhance the total number I/O’s to a maximum of 64-inputs and 64-outputs per HSSI channel (one output is reserved for command identification). The four HSSI channels in the controller provide a maximum of 256-inputs and 256-outputs (four outputs are reserved for command identification). See FIGURE 3-2 HSSI-IO16 block diagram.

• 16 opto-isolated inputs

• 16 opto-isolated outputs fully protected against overloads

• Daisy chain capability in four communication channels

• 20KHz refresh rate

• Power-up module identification

• DIN rail type or surface screws mounting

DIFFERENTIALRECEIVERS

DIFFERENTIALTRANSMITTER

LOGIC

OUTPUTSTAGE

INPUTSTAGE

DIP SWITCHES

STEP-DOWNCONVERTER 5V24Vdc

SER_CLK

SER_DI

SER_DO

16*

16

16*

16

HSSIbus

POWER-ONRESET

FIGURE 3-2 HSSI-IO16 block diagram

Page 18: HSSI Expansion Modules Guide 3.00

HSSI- IO16 EXPANSION MODULE 3–3

SPi i /SPiiPlus HSSI Expansion Modules Guide - Document revision no. 3.00

3.2. HSSI-IO16 Specifications • Unit Supply: 24Vdc (±20%)

• External I/O Supply: 5Vdc (±10%) or 24Vdc (±20%), detected automatically

• Inputs: 16 inputs, propagation delay <1msecond

• Input Type: Source, Opto-isolated

• Outputs: 16 outputs, 50mA per output, maximum total current 700mA,propagation delay < 1msecond

• Output Type: Source, Opto-isolated

• Size: H 74mm x W 190mm x D 34.5mm (H 2.91” x W 7.48” x D 1.36”)

3.3. HSSI-IO16 Mounting Options • DIN Rail Mount – for DIN rail mounting use the standard supplied plastic side elements.

• Surface Mount - for surface mounting use the supplied metal side elements. Mount the modules with the supplied screws to the surface.

3.4. Daisy Chain Wiring of Modules To increase the number of inputs and outputs available to the system, HSSI-IO16 units can be daisy chained. Up to 4 units can be chained on each HSSI channel. Each unit has two RJ45 connectors for easy chaining. Total length of the daisy chain should not exceed 20m. For HSSI Cable specifications refer to section 2.2 HSSI Cables.

3.5. Input Structure The I/O stages get their power from a user supplied DC power source. If isolation is not needed, the system 24V(-20% +10%) power supply can be used instead, by making an external connection.

The input stage is versatile and can be configured as sink or source by making the following external connection:

• Source – Connect input connector pin-18 (REF) to pin-19 (VIN_RET)

• Sink – Connect input connector pin-18 (REF) to pin-20 (VIN)

3.6. Output Structure The HSSI-IO16 has 16, opto-isolated outputs.

The outputs source type and are divided into two groups: Outputs 0-7 and Outputs 8-15. The total current available to each group is internally limited to 350mA. Thus, the HSSI-IO16 can supply 350mA to 2 loads, 175mA to 4 loads, or 43mA to 16 loads.

Page 19: HSSI Expansion Modules Guide 3.00

3–4 HSSI- IO16 EXPANSION MODULE

SPi i /SPiiPlus HSSI Expansion Modules Guide - Document revision no. 3.00

3.7. HSSI-IO16 Connectors

3.7.1. Input Connector Receptacle: Phoenix Contact™ 20-pin, Type: MCV1.5/20-GF-3.81 Plug: Phoenix Contact 20-pin, Type: MC1.5/20-STF-3.81

Plugs may be ordered directly through the Phoenix Contact website: http://www.phoenixcontact.com/

• VIN: External voltage 5Vdc or 24Vdc (detected automatically)

• VIN_RET: Return signal of VIN

• REF: Inputs can be configured as sink/source by connecting REF to VIN or to VIN_RET

TABLE 3-1 Input Connector pin assignment

Pin no. Signal Pin no. Signal

1 Input1 11 Input10

2 Input2 12 Input11

3 Input3 13 Input12

4 Input4 14 Input13

5 Input5 15 Input14

6 VIN_RET 16 Input15

7 Input6 17 Input16

8 Input7 18 REF

9 Input8 19 VIN_RET

10 Input9 20 VIN

3.7.2. Output Connector Receptacle: Phoenix Contact 20-pin part # MCV1.5/20-GF-3.81 Plug: Phoenix Contact 20-pin, Type: MC1.5/20-STF-3.81

Plugs may be ordered directly through the Phoenix Contact website: http://www.phoenixcontact.com/

• VOUT: External voltage 5Vdc or 24Vdc

• VOUT_RET: Return signal of VOUT

Page 20: HSSI Expansion Modules Guide 3.00

HSSI- IO16 EXPANSION MODULE 3–5

SPi i /SPiiPlus HSSI Expansion Modules Guide - Document revision no. 3.00

TABLE 3-2 Output Connector pin assignment

Pin no. Signal Pin no. Signal

1 Output1 11 Output10

2 Output2 12 VOUT_RET

3 Output3 13 Output11

4 Output4 14 Output12

5 Output5 15 Output13

6 VOUT_RET 16 Output14

7 Output6 17 Output15

8 Output7 18 Output16

9 Output8 19 VOUT_RET

10 Output9 20 VOUT

3.7.3. Power Connector Receptacle: Phoenix Contact 3-pin, Type: MCV1.5/3-GF-3.81 Plug: Phoenix Contact 3-pin, Type: MC1.5/3-STF-3.81

Plugs may be ordered directly through the Phoenix Contact website: http://www.phoenixcontact.com/

One for input voltage and the other for daisy chaining power.

TABLE 3-3 Power Connector pin assignment

Pin no. Signal

1 24Vdc

2 24Vdc Return

3 Protective Earth

Page 21: HSSI Expansion Modules Guide 3.00

3–6 HSSI- IO16 EXPANSION MODULE

SPi i /SPiiPlus HSSI Expansion Modules Guide - Document revision no. 3.00

3.7.4. Controller Interface Connectors Receptacles: Two RJ45 standard 8-pin connectors (connected in parallel) Cable: FTP category 5 (used for Ethernet communication)

TABLE 3-4 RJ45 connector pin assignment

Pin no. Signal

1 SER_CLK+

2 SER_CLK-

3 SER_DI+

4 SER_DI-

5 SER_DO+

6 SER_DO-

7 GND

8 GND

3.8. Digital Inputs There are 16 Inputs. Propagation delay <1msecond.

The voltage for proper operation of inputs must be 5Vdc or 24Vdc and supplied by an external power supply to operate inputs circuit. The inputs can be configured as source or sink type by connecting REF to VIN_RET or VIN.

Input

To Logic

+5V

VIN_RET

VIN Input Circuit To other inputs

5V I/O Supply: Switch ON

24V I/O Supply: Switch OFF

REF

FIGURE 3-3 Input port interface

Page 22: HSSI Expansion Modules Guide 3.00

HSSI- IO16 EXPANSION MODULE 3–7

SPi i /SPiiPlus HSSI Expansion Modules Guide - Document revision no. 3.00

3.9. Digital Output Connections There are 16 digital outputs.Output type: source

• Maximum continuous current for each output: 50mA, maximum total current 700mA

• Propagation delay < 1msecond

• Opto-isolated

• All the digital outputs are protected against short circuit and over-current.

FIGURE 3-4 Output port interface

3.10. Setup Checklist • Supply 24Vdc

• Daisy chaining multiple modules

• Configure for Source or Sink

• Set the Address

• Set the Termination Resistor

Page 23: HSSI Expansion Modules Guide 3.00

SOFTWARE SUPPORT 4-1

SPi i /SPiiPlus HSSI Expansion Modules Guide - Document revision no. 3.00

4. SOFTWARE SUPPORT

The following chapter explains the basic software support to provide the following functionality:

• How to get started

• How to designate channel and module numbers

• How to read an HSSI input in each module

• How to assign an HSSI output in each module

• How to interrogate and verify communication by getconf function

• How to diagnose HSSI-IO16 communication by setconf function

• How to use the SPiiPlus MMI, I/O monitoring tools for the HSSI-IO16

• How to use the SPiiPlus MMI, Scope to monitor the HSSI-IO16

4.1. HSSI-IO16 Operation • How to write and read an output: Use the proper array element of ETXOUT.

Example Assuming that an HSSI-IO16 is connected to channel 0 and its address is 2. To set output 0: EXTOUT2=0x1 To set all outputs: EXTOUT2=0xffff To read the status of the outputs: ?EXTOUT2

• How to read an input. Use the proper array element of ETXIN. Example (assuming the above setup): ?EXTIN2

Page 24: HSSI Expansion Modules Guide 3.00

4-2 SOFTWARE SUPPORT

SPi i /SPiiPlus HSSI Expansion Modules Guide - Document revision no. 3.00

• How to find out which module types are connected and their status by using getconf. Example Two HSSI-IO16 units are connected to channel 3 with Address 0,1(12,13) getconf(24,12) -returns 0, unit is connected getconf(24,13) -returns 1, unit is connected getconf(24,14) -returns -1, no unit is connected getconf(24,15) -returns -1, no unit is connected

• How to recover from communication fault. When an HSSI Expansion Module detects communication failure, it turns all outputs off and turns the communication LED to red. Usually it happens if the communication cable is disconnected. To reinitiate the unit(s) issue the getconf command to all units that are connected to that channel. Example 4 modules are chained to channel 0 and the cable between unit 1 and 2 was disconnected. The communication LED of units 2 and 3 will turn red. After reconnecting the cable, issue the following commands: getconf(24,0) getconf(24,1) getconf(24,2) getconf(24,3)

• How to switch between Command Mode and Data Mode. When in Data Mode, the bits EXTOUT3.15,,,,, are always sent as 1 to the modules. In command mode it is possible to address the HSSI expansion modules using low level protocol and commands, via the EXTOUT/EXTIN arrays. EXTOUT3.15, EXTOUT7.15, EXTOUT11.15 and EXTOUT15.15 are sent to the modules as is. To switch to Command Mode, use the setconf command. Example To switch to Command Mode the module that is connected to channel 0 with address 2: setconf(24,2,1) To switch to Data Mode: setconf(24,2,0)

4.2. Designate Channel and Module Numbers Each HSSI-IO16 module has identification switches that assign to the module a number from 0 to 3. The modules connected to one channel must have different numbers. Module designations include channel number and module number (for example, module 1:3 means the module number 3 connected to channel 1).

There are 4; 16-bit input registers per HSSI channel. The registers are designated 0, 1, 2, and 3. The input registers are represented by the EXTIN array of 16 elements. Each element contains 16-bits. The EXTIN array is Read only except in the simulator where they are Read/Write.

There are 4; 16-bit output registers per HSSI channel. The registers are designated 0, 1, 2, and 3. The input registers are represented by the EXTOUT array of 16 elements. Each element contains 16-bits. The EXTIN array is Read/Write.

Up to 4, HSSI-IO16 Expansion Modules can be connected to each channel. The Address of each unit must have proper EXTIN and EXTOUT arrays.

Page 25: HSSI Expansion Modules Guide 3.00

SOFTWARE SUPPORT 4-3

SPi i /SPiiPlus HSSI Expansion Modules Guide - Document revision no. 3.00

Bit-15 in each channel is used for command identification. Therefore, bit-15 is not transferred to the device and is not available: EXTOUT3.15, EXTOUT7.15, EXTOUT11.15, EXTOUT15.15, etc.

TABLE 4-1 Channel and module numbering

HSSI module designation

Channel : Bit

EXTIN and EXTOUT array

Module 0:0 EXTIN0 and EXTOUT0

Module 0:1 EXTIN1 and EXTOUT1

Module 0:2 EXTIN2 and EXTOUT2

Module 0:3 EXTIN3 and EXTOUT3

Module 1:0 EXTIN4 and EXTOUT4

Module 1:1 EXTIN5 and EXTOUT5

Module 1:2 EXTIN6 and EXTOUT6

Module 1:3 EXTIN7 and EXTOUT7

Module 2:0 EXTIN8 and EXTOUT8

Module 2:1 EXTIN9 and EXTOUT9

Module 2:2 EXTIN10 and EXTOUT10

Module 2:3 EXTIN11 and EXTOUT11

Module 3:0 EXTIN12 and EXTOUT12

Module 3:1 EXTIN13 and EXTOUT13

Module 3:2 EXTIN14 and EXTOUT14

Module 3:3 EXTIN15 and EXTOUT15

Page 26: HSSI Expansion Modules Guide 3.00

4-4 SOFTWARE SUPPORT

SPi i /SPiiPlus HSSI Expansion Modules Guide - Document revision no. 3.00

4.3. SPiiPlus ACSPL+ Support

TABLE 4-2 SPiiPlus ACSPL+ Input/Output commands

Command Description

I0 = EXTIN0.3 Read input 3 in module 0:0 and assign 0 or 1 to variable I0

if EXTIN5.12; ptp X,1000; end Read input 12 in module 1:1; if the bit is 1, move X to position 1000

EXTOUT15.3 = 1 Set output 3 in module 3:3 to 1

EXTOUT2 = EXTIN0 Read all 16 input bits of module 0:0 and assign to all 16 output bits of module 0:2

EXTIN0.1 = 1 The assignment is senseless in actual controller, but can be used in Simulator for input emulation

4.4. HSSI Module Interrogation (getconf function)

The getconf function does the following:

• Tests communication integrity

• Identifies module type

• Switches to Data Mode and turns led green

The user application can interrogate the modules connected to HSSI channels in order to obtain their Address and to verify the communication during Operational or Command Modes.

The getconf function with key 24 provides information about the connected modules. The syntax of the function is: int getconf ( int Key, int Index ) where the Key argument must be 24 to interrogate the connected module, the Index specifies the interrogated module exactly as the index in EXTIN/EXTOUT arrays does.

The function returns an integer number that specifies the following:

• Positive number represents the module Address and means that the module is functioning properly. Address of the HSSI-IO16 module is 1.

• Value –1 means that no module is connected that corresponds to the specified index.

• Negative value indicates failure of the module test. Either units with the same address are connected to the same channel, or communication failed

For example, if the function getconf(24, 12) returns –1, no module is connected to HSSI-IO16 channel 3, Address=0

If the function finishes successfully and returns positive number, the controller transfers the module to Data Mode and switches the communication LED to green.

Page 27: HSSI Expansion Modules Guide 3.00

SOFTWARE SUPPORT 4-5

SPi i /SPiiPlus HSSI Expansion Modules Guide - Document revision no. 3.00

The GETCONF function can be used periodically to check the integrity of the modules. The GETCONF command execution takes up to 10millisecond. During that period, the outputs are not updated and the EXTIN array is not updated according to the state of the inputs.

The interrogation affects the communication with the interrogated module and with other modules on the same channel. For the time of interrogation (10 milliseconds) the modules does not update their outputs with the bits of EXTOUT array and does not update the EXTIN arrays according to the state of their inputs. For example, execution of function getconf(24, 10) freezes for 10milliseconds all operations in modules 2:0, 2:1, 2:2, 2:3.

4.5. Switching Between Modes (setconf function) When setting the HSSI communication channel into diagnostic mode, then it is possible to address the modules that are connected using low level protocol and commands, via the EXTOUT/EXTIN arrays.

The setconf function gives an option to set an HSSI channel to Command Mode for entire communication check without a limit of time.

The setconf function with key 24, switches on/off the HSSI channel to Command Mode. The syntax of the function is: setconf ( int Key, int Index, int Enable ) where the Key argument must be 24 for mode switching.

Index specifies the module exactly as the index in EXTIN/EXTOUT arrays does. Enable accepts only two values: 1 set the HSSI channel to Command Mode and 0 set the HSSI channel to Data Mode (pending that the communication with the HSSI modules function properly).

Example setconf(24, 2, 1) sets the HSSI channel 2 in Data Mode

4.6. SPiiPlus MMI Support SPiiPlus MMI has a screen that allows monitoring and setting of values to digital I/O as follows:

• Digital Inputs (setting values can be done only with SPiiPlus Simulator)

• Digital Outputs

• External digital Inputs and Outputs in all optional 16 units of HSSI-IO16

Page 28: HSSI Expansion Modules Guide 3.00

4-6 SOFTWARE SUPPORT

SPi i /SPiiPlus HSSI Expansion Modules Guide - Document revision no. 3.00

4.6.1. I/O Monitor The I/O Monitor displays the desired I/Os (Onboard, External) as where selected in the I/O selection screen. The I/O Monitor provides indication of onboard IN0/OUT0 and all 16 EXTIN and EXTOUT array bits (all I/O of up to 16 HSSI-IO16 modules). To open the I/O Monitor press the I/O button in the SPiiPlus MMI main panel.

FIGURE 4-1 I/O Monitor screen In the I/O Monitor, circles present digital Inputs. Whenever a specific input is On, the representative circle is illuminated. The user can toggle each Input On or Off state by click the representative circle (besides the onboard digital inputs when the SPiiPlus MMI is not connected to the Simulator).

In the I/O Monitor, squares present digital outputs. Whenever a specific output is On, the representative square is illuminated. The user can toggle each Output On or Off state by click the representative square.

Page 29: HSSI Expansion Modules Guide 3.00

SOFTWARE SUPPORT 4-7

SPi i /SPiiPlus HSSI Expansion Modules Guide - Document revision no. 3.00

4.6.2. I/O Variables The Select I/O Variables screen appears after pressing the I/O button in SPiiPlus MMI main panel and then pressing Select I/O Variables. The I/O Variables screen allows the user to select the desired I/Os (Onboard, External) to be monitored in the I/O Monitor.

FIGURE 4-2 Select I/O Variables

4.6.3. Scope Variables EXTIN and EXTOUT can be used in the Scope of SPiiPlus MMI.

4.7. SPiiPlus MultiDebugger Support Variables EXTIN and EXTOUT can be used in watches of SPiiPlus MultiDebugger

Page 30: HSSI Expansion Modules Guide 3.00

4-8 SOFTWARE SUPPORT

SPi i /SPiiPlus HSSI Expansion Modules Guide - Document revision no. 3.00

4.8. SPiiPlus C Library Support SPiiPlus C Library provides special functions that read from the EXTIN elements and write to the EXTOUT elements.

TABLE 4-3 SPiiPlus C Library HSSI commands

SPiiPlus C Library Command Description

acsc_GetExtInput Retrieves the current state of the specified extended input.

acsc_GetExtInputPort Retrieves the current state of the specified extended input port.

acsc_GetExtOutput Retrieves the current state of the specified extended output.

acsc_GetExtOutputPort Retrieves the current state of the specified extended output port.

acsc_SetExtOutput Sets the specified extended output to the specified value.

acsc_SetExtOutputPort Sets the specified extended output port to the specified value.

For a complete set of functional explanations of these commands, refer to the “SPiiPlus C Library Reference Guide.”

Page 31: HSSI Expansion Modules Guide 3.00

WARRANTY 5-1

SPi i /SPiiPlus HSSI Expansion Modules Guide - Document revision no. 3.00

5. WARRANTY

ACS-TECH80 warrants that its products are free from defects in materials and workmanship under normal use during the warranty period. The warranty period is one (1) year from receipt by the end user. This warrant does not apply to any product from which the serial number has been removed or destroyed, or damage as a result of accident, fire, misuse, abuse, negligence, operation outside the usage parameters, unauthorized modifications, or acts of G-d.

ACS-TECH80 is not liable for any damages (material, financial, or physical) caused by the products or the failure of the products to perform. These limits of liability shall including, but not limited to: any lost profits, lost savings, lost earnings, loss of programs or other data, business interruption, incidental damages, consequential damages or personal injury.

These limitations apply whether damages are sought, or a claim made, under this warranty or as a tort claim (including negligence and strict product liability), or any other claim. These limitations of liability will be effective even if you have advised ACS-Tech80 of the possibility of any such damages.

ACS-Tech80 makes no other warranties, expressed or implied, including any implied warranties of merchantability or fitness of any product for a particular purpose. ACS-Tech80 expressly disclaims all warranties not stated in this warranty. ACS-Tech80 reserves the right to make change to this warranty without notice.

Page 32: HSSI Expansion Modules Guide 3.00

INDEX I -1

SPi i /SPiiPlus HSSI Expansion Modules Guide - Document revision no. 3.00

INDEX

A

ACSPL+ support, 4-4

address, 2-2

C

C Library support, 4-8

cable, 2-2

channels, 4-2

component layout, 1-1

connectors, 3–4

controller interface, 3–6

input, 3–4

output, 3–4

power, 3–5

controller interface connector, 3–6

D

daisy chain wiring, 3–3

digital inputs, 3–6

digital outputs, 3–7

E

errors and diagnostics, 2-4

G

getconf function, 4-4

H

HSSI cable, 2-2

HSSI Components, 2-1

HSSI hub, 2-1

HSSI module interrogation, 4-4

HSSI-IO16, 3–2

HSSI-IO16 Expansion Module, 3–1

HSSI-IO16 mounting & wiring, 3–3

HSSI-IO16 operation, 4-1

HSSI-IO16 specifications, 3–3

HSSI-IO16 wiring, 3–3

hub, 2-1

I

I/O Monitor, 4-6

I/O Selection, 4-7

indicators, 2-3

input connector, 3–4

input structure, 3–3

inputs, 3–6

interrogation, 4-4

Page 33: HSSI Expansion Modules Guide 3.00

I -2 INDEX

SPi i /SPiiPlus HSSI Expansion Modules Guide - Document revision no. 3.00

Introduction, 1-1

IO16, 3–2

M

MMI support, 4-5

module numbers, 4-2

mounting options, 3–3

MultiDebugger support, 4-7

O

output connector, 3–4

output structure, 3–3

outputs, 3–7

P

power connector, 3–5

R

resistor, 2-3

S

Scope, 4-7

setconf function, 4-5

Software Support, 4-1

SPiiPlus ACSPL+, 4-4

SPiiPlus C Library support, 4-8

SPiiPlus MMI support, 4-5

SPiiPlus MultiDebugger support, 4-7

switches, 2-2

switching between modes, 4-5

T

termination resistor, 2-3

W

WARRANTY, 5-1

wiring, 3–3

Page 34: HSSI Expansion Modules Guide 3.00

SPii/SPiiPlus HSSI Expansion Modules Guide - Document revision no. 3.00

ERRATA

Page Comments