Smart I/O User’s Manual
This page was intentionally left blank
Preface
Revision History
For your safety
Special Handling and Unpacking Instructions
Two Years Warranty
Preface
Chapter
SMART-EXT
Analog Modules
This page was intentionally left blank
Table of Contents
Smart I/O User’s Manual Introduction
General Information
Weights & Measures
Optional Bracket Mounting
Smart I/O User’s Manual Introduction
I t
Product Overview
Ordering Information
O d u c t
Product Information
Esc r i p t io n
B a SE Power Consumption Min
SCR2
Installation
Overview
Smart I/O User’s Manual Introduction
Smart I/O Module Installation
2.1 Smart I/O Module Installation
3 RJ45 Telephone Connector Installation
Screw Terminal Block Installation
Battery Installation
5.1 Battery Piggyback Installation
ISaGRAF-Installation
Before Installing
Installation of the ISaGRAF for Windows Workbench
2.1 Typical Opening Screen
Smart I/O User’s Manual Introduction
Installation of PEP Library Functions
2.3 ISaGRAF Program Group
3.1 illustrates the Installation Start-up screen
Introduction Smart I/O User’s Manual
3.2 Power Up Messages
Profibus
Demo Application
Introduction Smart I/O User’s Manual
This page has been left blank intentionally
SMART-BASE
Smart I/O User’s Manual SMART-BASE ISaGRAF Programming
SMART-BASE
Specifications
D C
Board Overview
Front view
Rear View
0.1 Smart I/O Block Diagram
Functional Description
Interrupt Logic
Configuration
Jumper J1 Boot Selection Pin Connector
Jumper J6 LED Function Pin Connector
Pinouts
Smart Module Piggyback Connectors
SMART-Module location #0 ST5 pinouts
SMART-Module location #2 ST1 pinouts
Pinouts process side ST6, ST4 and ST2 for Modules #0 to #2
Timer I/O Screw Terminal SCR1
Screw Terminal Pinouts
3.1 Timer I/O TIN Schematic
3.2 Timer I/O Tout Schematic
Supply Screw Terminals SCR2
5 RS232 Telephone Connector BU1
Pin Nr Signal Description
SPI Connector ST7
Pin Nr Signal
‘C’ Programming
SMART-BASE Library
Hardware Requirements
Software Requirements
SMTselIn Syntax
Description
Input
Output
Example
SMTsettout Syntax
SMTpre Syntax
Example for a Square Wave Generator
SMTstasto Syntax
SMTrd Syntax
Input Pointer to a variable in which to place the read
Value
SMTtin Syntax
Description of the Timer Status Register TSR
SMTstat Syntax
SMTout Syntax
SMLed Syntax
SMwdon Syntax
SMwdtrig Syntax
SMwdoff Syntax
ISaGRAF Programming
ISaGRAF Board Parameters
ISaGRAF Operate Calls
Voltage Time
RetVar = OPERATEiovar, OSTARTCOUNTER, null
Opreload
Flash Utility
Examples
Example to download ISA11 module and store in Flash
SMART-EXT
Smart I/O User’s Manual SMART-EXT
SMART-EXT
SPI
1 SMART-EXT Block Diagram
0.1 SMART-EXT Pinout Overview
Pinouts digital side ST1 and ST3
CS-SLOTA
Pinouts process side ST2 and ST4
Parallel I/O Screw Terminals Scra and Scrb
SPI Connectors ST5 and BU1
Pinouts for this 10-pin connector
This page has been left blank intentionally
Digital Modules
SM-DIN1
SM-REL1
This page was intentionally left blank
Specifications
SM-DIN1
Introduction
Front Panel Layout
Board Overview Component Side
5.1 SM-DIN1 Schematic Diagram
Functional Description
Configuration
6.1 SM-DIN1 Configurable Filter
Pinouts Screw Terminal Pinouts
Connection
Input Circuit
8 ‘C’ Programming 4.1.8.1 SM-DIN1 Library
SMDIN1Init Syntax
SMDIN1DeInit Syntax
SMDIN1Get Syntax
ISaGRAF Programming ISaGRAF Board Parameters
ISaGRAF Operate Calls
Smart I/O User’s Manual Digital Modules
SM-DOUT1
OFF
Yellow LEDs User Descriptor Fields
5.1 SM-DOUT1 Schematic Diagram
There are no jumpers to configure on the SM-DOUT1
Digital Actuators
Output Circuit
8 ‘C’ Programming 4.2.8.1 SM-DOUT1 Library
SMDOUT1Init Syntax
SMDOUT1DeInit Syntax
SMDOUT1Get Syntax
SMDOUT1Set Syntax
Module Specific Information
ISaGRAF Operate Calls
Digital Modules Smart I/O User’s Manual
This page has been left blank intentionally
SM-REL1
Yellow LEDs Green LED Yellow LED
5.1 SM-REL1 Schematic Diagram
Configuration Jumper J1 Eeprom Protection
Vccext
8 ‘C’ Programming 4.3.8.1 SM-REL1 Library
SMREL1Init Syntax
SMREL1DeInit Syntax
SMREL1Reset Syntax
SMREL1GetRly Syntax
SMREL1SetRly Syntax
SMREL1GetLed Syntax
SMREL1SetLed Syntax
SMREL1GetExtVcc Syntax
ISaGRAF Programming ISaGRAF Board Parameters
ISaGRAF Operate Calls
Oextpower
Oextpower
SM-ACI1
Specifications
Front Panel Layout
Board Overview
Solder Side
Functional Description
Configuration
SM-ACI1 Configurable Filter
Screw Terminal Pinouts
Pinout/Signal Relationship
Connection
Ansi ’C’ Programming 4.4.8.1 SM-ACI1 Library
SMACI1Init
SMACI1DeInit
SMACI1Get
ISaGRAF Programming ISaGRAF Board Parameters
ISaGRAF Operate Calls
Oinitcode
Smart I/O
Analog Modules
SM-THERM
SM-ADC1
SM-DAC1
This page has been left blank intentionally
Analog Modules
SM-DAD1
Red LEDs User Descriptor Fields
Board Overview
Component Side
5.1 SM-DAD1 Input Schematic Diagram
Input Circuitry
5.2 SM-DAD1 Output Schematic Diagram
Output Circuitry
Jumpers J1 and J2
Jumper J3 Eeprom Protection
Jumper J4 and J5 DAC Output
Agnd
Analog Actuators
Connection Circuit
VOUT0 Agnd
8 ‘C’ Programming 5.1.8.1 SM-DAD1 Library
SMDAD1Init Syntax
SMDAD1DeInit Syntax
SMDAD1GetVRaw Syntax
RetVal = SMDAD1GetVRaw0, 2, 0x07FF
SMDAD1GetV Syntax
RetVal = SMDAD1GetV0, 2, 0x07FF
SMDAD1PutVRaw Syntax
RetVal = SMDAD1PutVRaw0, 1, 0x0FFF
SMDAD1PutV Syntax
RetVal = SMDAD1PutV0, 1, 0x7FF
SMDAD1SetLed Syntax
SMDAD1ClrLed Syntax
ISaGRAF Programming ISaGRAF Board Parameters
ISaGRAF Operate Calls
Represents the analog return variable and can
Smart I/O User’s Manual Analog Modules
SM-PT100
Front Panel Layout Board Overview Component Side
5.1 SM-PT100 Schematic Diagram
5.2 Tolerances between Class a and Class B Sensors
Pin Nr. Signal Description
PT100PT100
8 ‘C’ Programming 5.2.8.1 SM-PT100 Library
Initialization
Read RAW Data
Read Temperature Values
Calibration
Deinitialization
Other Functions
END
SMADCInit Syntax
SMADCCalibrate Syntax
SMADCSetCyclicCalib Syntax
SMADCSetSensorType Syntax
SMADCGetSensorType Syntax
SMADCSetPrecision Syntax
SMADCGetPrecision Syntax
SMADCSetMode Syntax
SMADCGetMode Syntax
SMADCSetSignal Syntax
SMADCSetGain Syntax
SMADCGetGain
SMADCEnableRead Syntax
SMADCEnableConversion Syntax
SMADCReadRaw Syntax
SMADCReadConverted Syntax
SMADCDeinit Syntax
Calibperiod Typechx
ISaGRAF Operate Calls
Correct iovar is passed or non-zero if an
SM-THERM
SM-THERM
5.1 SM-THERM Schematic Diagram
† Cold Junction point PT100 connection
PT100
8 ‘C’ Programming 5.3.8.1 SM-THERM Library
To execute the example
D 1 L E D A t u s
8.1 SM-THERM Programming Flow Diagram
SMADCInit Syntax
SMADCCalibrate Syntax
Uint8 PortNr Uint16 secs
RetVal = SMADCSetSensorType0, 1, Btype
SMADCGetSensorType Syntax
SMADCSetPrecision Syntax
SMADCGetPrecision Syntax
SMADCSetMode Syntax
SMADCGetMode Syntax
SMADCSetSignal Syntax
SMADCSetGain Syntax
SMADCGetGain Syntax
SMADCEnableRead Syntax
SMADCEnableConversion Syntax
SMADCReadRaw Syntax
SMADCReadConverted Syntax
Number of the port to de-initialize
ISaGRAF Programming ISaGRAF Board Parameters
ISaGRAF Operate Calls
Represents the analog return variable and can
This page has been left blank intentionally
SM-ADC1
PEP Modular Computers GmbH October 01
5.1 SM-ADC1 Input Shematic Diagram
Pin Nr. Signal Description
Analog Sensors
8 ‘C’ Programming 5.4.8.1 SM-ADC1 Library
SMADC1Init Syntax
Input Port number of module to initialise
From 0 to
SMADC1GetVRaw Syntax
RetVal = SMADC1GetVRaw0, 2, 0x07FF
SMADC1GetV Syntax
RetVal = SMADC1GetV0, 2, 0x07FF
SMADC1SetLed Syntax
SMADC1ClrLed Syntax
SMADC1DeInit Syntax
ISaGRAF Programming ISaGRAF Board Parameters
ISaGRAF Operate Calls
Represents the analog return variable and can
Oenablelinecheck
Osetlinelimit
This page has been left blank intentionally
SM-DAC1
Current Sense Circuitary Converters
5.1 SM-DAC1 Output Shematic Diagram
OUT0
Current Output Circuit
Voltage Output Circuit
8 ‘C’ Programming 5.5.8.1 SM-DAC1 Library
SMDAC1Init Syntax
SMDAC1OpenLoop Syntax
SMADAC1Operate Syntax
SMDAC1StandBy Syntax
SMDAC1PutVRaw Syntax
RetVal = SMDAC1PutVRaw0, 1, 0x0FFF
SMDAC1PutV Syntax
RetVal = SMDAC1PutV0, 1, 0x0FFF
SMDAC1SetLed Syntax
SMDAC1ClrLed Syntax
SMDAC1DeInit Syntax
ISaGRAF Programming ISaGRAF Board Parameters
ISaGRAF Operate Calls
OALED1ON, OALED2ON
Ogetlinestate
Communications Modules For
Communications Modules
Communications Modules Smart I/O User’s Manual
This page has been left blank intentionally
Communications Modules
SM-RS232
Yellow LED Green LED
5.1 SM-RS232 Schematic Diagram
Jumper Settings Description
Interface
ISaGRAF Programming ISaGRAF Board Parameters
Communications Modules Smart I/O User’s Manual
ISaGRAF Operate Calls
Ret = OPERATEkeyboard, Oserialread
Return
$ xmode baud=19200 cs=7 par=none /scc3 return
Smart I/O User’s Manual Communications Modules
SM-SSI
Eeprom Prom
5.1 SM-SSI Schematic Diagram
6.1 SM-SSI Timing Diagram
SSI Operation
6.2 SM-SSI Timing Diagram for serial transfer
Register Description
Control Register
CTRL1 Register
CTRL2 Register
CTRL3 Register
Compare Register
Identification Register
Status Register
ER1
STAT2 Register
Data Register
Match Function
Tested Sensors
CLK+
SM-SSI
12 ‘C’ Programming 6.2.12.1 SM-SSI Library
SMSSIInit Syntax
SMSSIDeInit Syntax
SMSSISetSetPoint Syntax
SMSSISetCtrlReg Syntax
SMSSIGetStatus Syntax
SMSSIGetData Syntax
13.1.1 Function block of the SM-SSI Module Command
Setpoint Port Ctrx Error Position Statusx
This page has been left blank intentionally