You are on page 1of 34

SPii/SPiiPlus HSSI Expansion Modules

HSSI-IO16

Hardware and Software Guide

Document part no. TM-0HSSI-000 Document revision no. 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: info@acs-tech80.com support@acs-tech80.com

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.

RE C ENT CH AN G E S T O T HI S G UI D E

Recent Changes to this Guide


Rev. Date Sect./ Page Change ECR

SPi i/ SPii P lus H SSI Exp an sio n M odul es G u id e - Do cu m ent rev is ion no . 3. 0 0

CO NT E NT S

II I

CONTENTS

FIGURES TABLES PREFACE 1.


1.1.

INTRODUCTION
HSSI-IO16 COMPONENT LAYOUT

1-1
1-1

2.
2.1. 2.2. 2.3. 2.4. 2.5. 2.6. 2.7.

HSSI COMPONENTS
HSSI-HUB HSSI CABLES ADDRESS SWITCH SETTINGS TERMINATION RESISTOR SWITCH SETTINGS INDICATORS COMMUNICATION ERRORS AND DIAGNOSTICS

2-1
2-1 2-2 2-2 2-3 2-3 2-3 2-4

SPi i/ SPii P lus H SSI Exp an sio n M odul es G u id e - Do cu m ent rev is ion no . 3. 0 0

IV

CO NT ENT S

3.
3.1. 3.2. 3.3. 3.4. 3.5. 3.6. 3.7. 3.8. 3.9. 3.10.

HSSI-IO16 EXPANSION MODULE


HSSI-IO16 DESCRIPTION HSSI-IO16 SPECIFICATIONS HSSI-IO16 MOUNTING OPTIONS DAISY CHAIN WIRING OF MODULES INPUT STRUCTURE OUTPUT STRUCTURE HSSI-IO16 CONNECTORS DIGITAL INPUTS DIGITAL OUTPUT CONNECTIONS SETUP CHECKLIST

31
32 33 33 33 33 33 34 36 37 37

4.
4.1. 4.2. 4.3. 4.4. 4.5. 4.6. 4.7. 4.8.

SOFTWARE SUPPORT
HSSI-IO16 OPERATION DESIGNATE CHANNEL AND MODULE NUMBERS SPIIPLUS ACSPL+ SUPPORT HSSI MODULE INTERROGATION (GETCONF FUNCTION) SWITCHING BETWEEN MODES (SETCONF FUNCTION) SPIIPLUS MMI SUPPORT SPIIPLUS MULTIDEBUGGER SUPPORT SPIIPLUS C LIBRARY SUPPORT

4-1
4-1 4-2 4-4 4-4 4-5 4-5 4-7 4-8

5.

WARRANTY

5-1

INDEX

SPi i/ SPii P lus H SSI Exp an sio n M odul es G u id e - Do cu m ent rev is ion no . 3. 0 0

FIG U R E S

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 ............................................................................. 31 FIGURE 3-2 HSSI-IO16 block diagram..................................................................................... 32 FIGURE 3-3 Input port interface ................................................................................................ 36 FIGURE 3-4 Output port interface ............................................................................................. 37 FIGURE 4-1 I/O Monitor screen ................................................................................................. 4-6 FIGURE 4-2 Select I/O Variables................................................................................................ 4-7

SPi i/ SPii P lus H SSI Exp an sio n M odul es G u id e - Do cu m ent rev is ion no . 3. 0 0

VI

T AB L E S

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.............................................................................. 34 TABLE 3-2 Output Connector pin assignment ........................................................................... 35 TABLE 3-3 Power Connector pin assignment............................................................................ 35 TABLE 3-4 RJ45 connector pin assignment............................................................................... 36 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

SPi i/ SPii P lus H SSI Exp an sio n M odul es G u id e - Do cu m ent rev is ion no . 3. 0 0

PR E F AC E

VI I

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+ Programmers 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.

SPi i/ SPii P lus H SSI Exp an sio n M odul es G u id e - Do cu m ent rev is ion no . 3. 0 0

VI II

P R EF AC E

Guide Outline
Chapter 1 INTRODUCTION: Chapter 2 HSSI COMPONENTS: Chapter 3 HSSI-IO16 EXPANSION MODULE: Chapter 4 SOFTWARE SUPPORT:

Related Tools
SPiiPlus Series SPiiPlus C Library SPiiPlus MMI SPiiPlus MultiDebugger SPii (Carmel) Series SPii C Library SPii MMI

Related Documentation
SPiiPlus Series SPiiPlus PCI Hardware and Setup Guides SPiiPlus ACSPL+ Programmers Guide SPiiPlus MultiDebugger Users 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. SPii (Carmel) Series SPiiPCI Hardware and Installation Guide SPii Software Guide

SPi i/ SPii P lus H SSI Exp an sio n M odul es G u id e - Do cu m ent rev is ion no . 3. 0 0

INT RO D UCT IO N

1-1

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.

SPi i/ SPii P lus H SSI Exp an sio n M odul es G u id e - Do cu m ent rev is ion no . 3. 0 0

1-2

INT RO DU C T IO N
J3 Connector

Flat 30-Pin Cable 24 Volt Power Supply

SPiiPlus PCI-4/8
RJ45 Connector HSSI HUB

HSSI Cables HSSI-IO16 . . . . . . . .

HSSI-IO16 . . . . . . . .

HSSI-IO16 . . . . . . . .

HSSI-IO16 . . . . . . . .

FIGURE 1-1 HSSI-IO16 component layout

SPi i/ SPii P lus H SSI Exp an sio n M odul es G u id e - Do cu m ent rev is ion no . 3. 0 0

HS S I CO M PO N E NT S

2- 1

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

SPi i/ SPii P lus H SSI Exp an sio n M odul es G u id e - Do cu m ent rev is ion no . 3. 0 0

2- 2

H S SI CO M P O N ENT S

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.
SW 1 SW 2 SW 3

ON O FF
ADDR ESS TR EM INATIO N

FIGURE 2-2 Address and Termination Resistor Switches TABLE 2-1 SPii HSSI Address settings ADDRESS 0 1 2 3 SW1 ON ON OFF OFF SW2 ON (Default) OFF ON OFF

SPi i/ SPii P lus H SSI Exp an sio n M odul es G u id e - Do cu m ent rev is ion no . 3. 0 0

HS S I CO M PO N E NT S

2- 3

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 ON OFF (Default) Description Termination resistors connected Termination resistors not connected

2.5.

Indicators
TABLE 2-3 LED indicator description

Signal Input Output Power

Color Green Green Green

Qty 16 16 1 1

Function ON while input is sourcing/sinking current. Connected on the logic side. ON while output is high. Connected on the logic side. ON while internal supply (5Vdc) is within range. Connected to the voltage-monitoring device. 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.

Communication Green or Red

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 50sec. 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.

SPi i/ SPii P lus H SSI Exp an sio n M odul es G u id e - Do cu m ent rev is ion no . 3. 0 0

2- 4

H S SI CO M P O N ENT S

CONTROL H SSI H U B S E R -D O S E R -D I

R e m ote In terface U n it

U ser C o nn ector

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

SPi i/ SPii P lus H SSI Exp an sio n M odul es G u id e - Do cu m ent rev is ion no . 3. 0 0

HS S I- I O 1 6 E X P AN S I O N M O DUL E

31

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
. 34 5m m

RJ45

RJ45

INPUT

20 PIN

74mm

HSSI IN / OUT COM POWER ADD TER 24V IN/OUT

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

1 15 4

3 3 PIN PIN

3 PIN 3 PIN

OUTPUT

20 20 PIN PIN

. .

FIGURE 3-1 HSSI-IO16 Expansion Module

SPi i/ SPii P lus H SSI Exp an sio n M odul es G u id e - Do cu m ent rev is ion no . 3. 0 0

3 2

H S SI- IO 16 E X P AN S I O N M O DUL E

3.1.

HSSI-IO16 Description

The HSSI-IO16 is a basic input/output HSSI Module used to expand the number of digital I/Os. 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/Os 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

DIP SWITCHES

SER_DO SER_CLK HSSI bus SER_DI


DIFFERENTIAL TRANSMITTER DIFFERENTIAL RECEIVERS

16*

OUTPUT STAGE

16*

LOGIC
16
INPUT STAGE

16

POWER-ON RESET

24Vdc

STEP-DOWN CONVERTER

5V

FIGURE 3-2 HSSI-IO16 block diagram

SPi i/ SPii P lus H SSI Exp an sio n M odul es G u id e - Do cu m ent rev is ion no . 3. 0 0

HS S I- I O 1 6 E X P AN S I O N M O DUL E

33

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 section2.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.
SPi i/ SPii P lus H SSI Exp an sio n M odul es G u id e - Do cu m ent rev is ion no . 3. 0 0

3 4

H S SI- IO 16 E X P AN S I O N M O DUL E

3.7.
3.7.1.

HSSI-IO16 Connectors
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. 1 2 3 4 5 6 7 8 9 10 Signal Input1 Input2 Input3 Input4 Input5 VIN_RET Input6 Input7 Input8 Input9 Pin no. 11 12 13 14 15 16 17 18 19 20 Signal Input10 Input11 Input12 Input13 Input14 Input15 Input16 REF VIN_RET 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

SPi i/ SPii P lus H SSI Exp an sio n M odul es G u id e - Do cu m ent rev is ion no . 3. 0 0

HS S I- I O 1 6 E X P AN S I O N M O DUL E

35

TABLE 3-2 Output Connector pin assignment Pin no. 1 2 3 4 5 6 7 8 9 10 Signal Output1 Output2 Output3 Output4 Output5 VOUT_RET Output6 Output7 Output8 Output9 Pin no. 11 12 13 14 15 16 17 18 19 20 Signal Output10 VOUT_RET Output11 Output12 Output13 Output14 Output15 Output16 VOUT_RET 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. 1 2 3 Signal 24Vdc 24Vdc Return Protective Earth

SPi i/ SPii P lus H SSI Exp an sio n M odul es G u id e - Do cu m ent rev is ion no . 3. 0 0

3 6

H S SI- IO 16 E X P AN S I O N M O DUL E

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. 1 2 3 4 5 6 7 8 Signal SER_CLK+ SER_CLKSER_DI+ SER_DISER_DO+ SER_DOGND 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.

VIN VIN_RET Input


5V I/O Supply: Switch ON 24V I/O Supply: Switch OFF

Input Circuit

To other inputs +5V

To Logic

REF
FIGURE 3-3 Input port interface

SPi i/ SPii P lus H SSI Exp an sio n M odul es G u id e - Do cu m ent rev is ion no . 3. 0 0

HS S I- I O 1 6 E X P AN S I O N M O DUL E

37

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

SPi i/ SPii P lus H SSI Exp an sio n M odul es G u id e - Do cu m ent rev is ion no . 3. 0 0

SO FT W AR E SU P PO R T

4- 1

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

SPi i/ SPii P lus H SSI Exp an sio n M odul es G u id e - Do cu m ent rev is ion no . 3. 0 0

4- 2

SO F T W AR E S UP P O RT

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.

SPi i/ SPii P lus H SSI Exp an sio n M odul es G u id e - Do cu m ent rev is ion no . 3. 0 0

SO FT W AR E SU P PO R T

4- 3

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 Module 0:0 Module 0:1 Module 0:2 Module 0:3 Module 1:0 Module 1:1 Module 1:2 Module 1:3 Module 2:0 Module 2:1 Module 2:2 Module 2:3 Module 3:0 Module 3:1 Module 3:2 Module 3:3 EXTIN0 and EXTOUT0 EXTIN1 and EXTOUT1 EXTIN2 and EXTOUT2 EXTIN3 and EXTOUT3 EXTIN4 and EXTOUT4 EXTIN5 and EXTOUT5 EXTIN6 and EXTOUT6 EXTIN7 and EXTOUT7 EXTIN8 and EXTOUT8 EXTIN9 and EXTOUT9 EXTIN10 and EXTOUT10 EXTIN11 and EXTOUT11 EXTIN12 and EXTOUT12 EXTIN13 and EXTOUT13 EXTIN14 and EXTOUT14 EXTIN15 and EXTOUT15 EXTIN and EXTOUT array

SPi i/ SPii P lus H SSI Exp an sio n M odul es G u id e - Do cu m ent rev is ion no . 3. 0 0

4- 4

SO F T W AR E S UP P O RT

4.3.

SPiiPlus ACSPL+ Support


TABLE 4-2 SPiiPlus ACSPL+ Input/Output commands

Command I0 = EXTIN0.3 if EXTIN5.12; ptp X,1000; end EXTOUT15.3 = 1 EXTOUT2 = EXTIN0 EXTIN0.1 = 1

Description Read input 3 in module 0:0 and assign 0 or 1 to variable I0 Read input 12 in module 1:1; if the bit is 1, move X to position 1000 Set output 3 in module 3:3 to 1 Read all 16 input bits of module 0:0 and assign to all 16 output bits of module 0:2 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.

SPi i/ SPii P lus H SSI Exp an sio n M odul es G u id e - Do cu m ent rev is ion no . 3. 0 0

SO FT W AR E SU P PO R T

4- 5

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


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

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

SPi i/ SPii P lus H SSI Exp an sio n M odul es G u id e - Do cu m ent rev is ion no . 3. 0 0

4- 6

SO F T W AR E S UP P O RT

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.

SPi i/ SPii P lus H SSI Exp an sio n M odul es G u id e - Do cu m ent rev is ion no . 3. 0 0

SO FT W AR E SU P PO R T

4- 7

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

SPi i/ SPii P lus H SSI Exp an sio n M odul es G u id e - Do cu m ent rev is ion no . 3. 0 0

4- 8

SO F T W AR E S UP P O RT

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 acsc_GetExtInput acsc_GetExtInputPort acsc_GetExtOutput acsc_GetExtOutputPort acsc_SetExtOutput acsc_SetExtOutputPort Description Retrieves the current state of the specified extended input. Retrieves the current state of the specified extended input port. Retrieves the current state of the specified extended output. Retrieves the current state of the specified extended output port. Sets the specified extended output to the specified value. 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.

SPi i/ SPii P lus H SSI Exp an sio n M odul es G u id e - Do cu m ent rev is ion no . 3. 0 0

W AR R ANT Y

5- 1

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.

SPi i/ SPii P lus H SSI Exp an sio n M odul es G u id e - Do cu m ent rev is ion no . 3. 0 0

IN DE X

I- 1

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, 34 controller interface, 36 input, 34 output, 34 power, 35 controller interface connector, 36 D daisy chain wiring, 33 digital inputs, 36 digital outputs, 37 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, 32 HSSI-IO16 Expansion Module, 31 HSSI-IO16 mounting & wiring, 33 HSSI-IO16 operation, 4-1 HSSI-IO16 specifications, 33 HSSI-IO16 wiring, 33 hub, 2-1 I I/O Monitor, 4-6 I/O Selection, 4-7 indicators, 2-3 input connector, 34 input structure, 33 inputs, 36 interrogation, 4-4

SPi i/ SPii P lus H SSI Exp an sio n M odul es G u id e - Do cu m ent rev is ion no . 3. 0 0

I-2

I ND E X 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 O switches, 2-2 switching between modes, 4-5 T termination resistor, 2-3 P

Introduction, 1-1 IO16, 32 M MMI support, 4-5 module numbers, 4-2 mounting options, 33 MultiDebugger support, 4-7

output connector, 34 output structure, 33 outputs, 37

power connector, 35 R resistor, 2-3

W WARRANTY, 5-1 wiring, 33

SPi i/ SPii P lus H SSI Exp an sio n M odul es G u id e - Do cu m ent rev is ion no . 3. 0 0

ERRATA
Page Comments

SPi i/ SPii P lus H SSI Exp an sio n M odul es G u id e - Do cu m ent rev is ion no . 3. 0 0

You might also like