WAGO SMI 02 User manual

Type
User manual
Libraries for
Building Automation
Module Descriptions for RS-
232/SMI Interface Module
Last Update: 02.05.2014
Copyright 2012 by WAGO Kontakttechnik GmbH & Co. KG
All rights reserved.
WAGO Kontakttechnik GmbH & Co. KG
Hansastraße 27
D-32423 Minden
Phone: +49 (0) 571/8 87 – 0
Fax: +49 (0) 571/8 87 – 1 69
Web: http://www.wago.com
Technical Support
Phone: +49 (0) 571/8 87 – 555
Fax: +49 (0) 571/8 87 – 8555
Every conceivable measure has been taken to ensure the accuracy and
completeness of this documentation. However, as errors can never be fully
excluded, we always appreciate any information or suggestions for improving
the documentation.
We wish to point out that the software and hardware terms, as well as the
trademarks of companies used and/or mentioned in the present manual, are
generally protected by trademark or patent.
Subject to design changes WAGO Kontakttechnik GmbH & Co. KG P.O. box 2880 • D-32385 Minden Phone: 05 (71) 8/87 – 0 E-Mail: info@wago.com
Copyright © 2012 Hansastr. 27 • D-32423 Minden Fax.: 05 71 / 8 87-169 Web:http://www.wago.com
2
Content
WAGO I/O PRO CAA Library for SMI Interface 789-912/913
Content
Important Notes .................................................................................... 5
Copyright ..................................................................................................... 5
Personnel Qualification ................................................................................ 5
Intended Use ................................................................................................ 5
Scope of Validity ......................................................................................... 6
Communication ..................................................................................... 7
SMI Master (FbSMI_Master) ...................................................................... 7
Blind Function Block .......................................................................... 10
Blind Controller (FbSMI_MOTOR) .......................................................... 10
Basic Function Block ......................................................................... 16
Diagnostic (FbSMI_DIAGNOSTIC) ......................................................... 16
AB (FbSMI_DOWN)................................................................................. 18
AUF (FbSMI_UP) ..................................................................................... 20
STOP (FbSMI_STOP) ............................................................................... 22
Step DOWN (FbSMI_STEP_DOWN) ...................................................... 24
Step UP (FbSMI_STEP_UP) ..................................................................... 26
Move Position (FbSMI_MOVE_POS) ...................................................... 28
Move to Position 1 (FbSMI_MOVE_POS_1) ........................................... 30
Move to Position 2 (FbSMI_MOVE_POS_2) ........................................... 30
Position with Lamella Shift (FbSMI_MOVE_POS_TURN) .................... 32
Read Position (FbSMI_READ_POS) ........................................................ 34
Read Position 1 (FbSMI_READ_POS_1) ................................................. 36
Read Position 2 (FbSMI_READ_POS_2) ................................................. 36
Write Position 1 (FbSMI_WRITE_POS_1) .............................................. 38
Write Position 2 (FbSMI_WRITE_POS_2) .............................................. 38
Read Manufacturer ID (FbSMI_READ_SYN) ......................................... 40
Read Parameters (FbSMI_READ_PAR) ................................................... 42
Write Parameters (FbSMI_WRITE_PAR) ................................................ 44
Addressing .......................................................................................... 46
Automatic Search and Addressing (FbAddressing) ................................... 46
Changing the Slave Address (FbSMI_CHANGE_SL_ADR) ................... 49
Writing the Slave Address (FbSMI_WRITE_SL_ADR) .......................... 51
Subject to design changes WAGO Kontakttechnik GmbH & Co. KG P.O. box 2880 • D-32385 Minden Phone: 05 (71) 8/87 – 0 E-Mail: [email protected]
Copyright © 2012 Hansastr. 27 • D-32423 Minden Fax.: 05 71 / 8 87-169 Web:http://www.wago.com
3
Table of Contents
Resetting the Slave Address (FbSMI_RESET_SL_ADR) ........................ 53
Reading the Slave ID (FbSMI_READ_SL_ID) ........................................ 55
Searching for a Slave ID (FbSMI_SEARCH_ID) ..................................... 57
Configuration ...................................................................................... 59
SMI configuration tool (FbSMI_Config) ................................................... 59
Visual Display Elements .................................................................... 60
Configuration Interface (visuSMI_Konfiguration) .................................... 60
Appendix ............................................................................................. 63
Creating a Visualization Page with Placeholder Function ......................... 63
Manufacturer ID ......................................................................................... 65
Error Codes of the FbAddressing Module ................................................. 65
Subject to design changes WAGO Kontakttechnik GmbH & Co. KG P.O. box 2880 • D-32385 Minden Phone: 05 (71) 8/87 – 0 E-Mail: info@wago.com
Copyright © 2012 Hansastr. 27 • D-32423 Minden Fax.: 05 71 / 8 87-169 Web:http://www.wago.com
4
Important Notes
Important Notes
To ensure quick installation and start-up of the units, please carefully read and
adhere to the following information and explanations.
Copyright
This document, including all figures and illustrations contained therein, is subject
to copyright protection. Any use of this document that infringes upon the
copyright provisions stipulated herein is prohibited. Reproduction, translation,
electronic and phototechnical filing/archiving (e.g., photocopying), as well as any
amendments require the written consent of WAGO Kontakttechnik GmbH & Co.
KG, Minden, Germany. Non-observance will involve the right to assert damage
claims.
WAGO Kontakttechnik GmbH & Co. KG reserves the right to make any
alterations or modifications that serve to increase the efficiency of technical
progress. WAGO Kontakttechnik GmbH & Co. KG owns all rights arising from
granting patents or from the legal protection of utility patents. Third-party
products are always mentioned without any reference to patent rights. Thus, the
existence of such rights cannot be excluded.
Personnel Qualification
The use of the product detailed in this document is geared exclusively to
specialists having qualifications in PLC programming, electrical specialists or
persons instructed by electrical specialists who are also familiar with the valid
standards. WAGO Kontakttechnik GmbH & Co. KG assumes no liability resulting
from improper action and damage to WAGO products and third-party products
due the disregard of the information contained in this document.
Intended Use
For each individual application, the components are supplied from the factory
with a dedicated hardware and software configuration. Modifications are only
admitted within the framework of the possibilities documented in this document.
All other changes to the hardware and/or software and the non-conforming use of
the components entail the exclusion of liability on part of WAGO Kontakttechnik
GmbH & Co. KG.
Please send your requests for modified and new hardware or software
configurations directly to WAGO Kontakttechnik GmbH & Co. KG.
Subject to design changes WAGO Kontakttechnik GmbH & Co. KG P.O. box 2880 • D-32385 Minden Phone: 05 (71) 8/87 – 0 E-Mail: [email protected]
Copyright © 2012 Hansastr. 27 • D-32423 Minden Fax.: 05 71 / 8 87-169 Web:http://www.wago.com
5
Important Notes
Scope of Validity
This application note is based on the stated hardware and software from the
specific manufacturer, as well as the associated documentation. This
application note is therefore only valid for the described installation.
New hardware and software versions may need to be handled differently.
Please note the detailed description in the specific manuals.
Subject to design changes WAGO Kontakttechnik GmbH & Co. KG P.O. box 2880 • D-32385 Minden Phone: 05 (71) 8/87 – 0 E-Mail: info@wago.com
Copyright © 2012 Hansastr. 27 • D-32423 Minden Fax.: 05 71 / 8 87-169 Web:http://www.wago.com
6
SMI Master (FbSMI_Master)
Communication
SMI Master (FbSMI_Master)
WAGO-I/O-PRO CAA Library Elements
Category:
Building Automation
Name:
FbSMI_Master
Type:
Function
Function block X
Program
Name of library:
SMI_02.lib
Applicable to:
All programmable fieldbus controllers
Libraries used:
Standard.lib
Serial_Interface_01.lib.
SerComm.lib
Input parameter:
Data type:
Comment:
bCOM_PORT_NR
BYTE
No. of the serial interface used
0 -> On-board interface (e.g., 750-873)
1 -> Internal service port
2 ->1nd connected serial module
3 ->2nd connected serial module
Input/output parameter:
Data type:
Comment:
typSMI
SMI send and receive data (internal)
. xBusy
BOOL
Communication channel occupied
. xStartSend
BOOL
Begin send request
. iBytes_to_Send
INT
Number of bytes to be sent
. xComOpen
BOOL
Serial interface opened
. xAddressing
BOOL
Addressing enabled
. bPrioCmd
BYTE
Number of high priority commands
. abSend_Buffer
ARRAY[0..
16] OF
BYTE
Data to be sent
. utReceive_Buffer
typRING_
BUFFER
Data to be received
Output parameters:
Data type:
Comment:
bError BYTE 0x00: No error.
0x01: This library is not supported by the
firmware.
0x02: COM port outside of the valid area.
0x03: This function block instance has not
yet been assigned a COM port.
0x04: This function block instance has
already been assigned a different
COM port.
0x05: COM port is already opened.
0x06: COM port is already closed.
Subject to design changes WAGO Kontakttechnik GmbH & Co. KG P.O. box 2880 • D-32385 Minden Phone: 05 (71) 8/87 – 0 E-Mail: [email protected]
Copyright © 2012 Hansastr. 27 • D-32423 Minden Fax.: 05 71 / 8 87-169 Web:http://www.wago.com
7
SMI Master (FbSMI_Master)
0x07: COM port is not opened.
0x08: A write operation is still active
(COM1).
0x09: These transfer parameters are not
supported by the COM port.
0x0A: The current settings of the bus
module could not be read.
0x0B: This library version does not yet
support the temporary setting of
communication parameters.
0x0C: Bus module could not be initialized.
0x0D: Error when writing data into the
FIFO memory of the bus module.
0x0E: The contents of the FIFO memory
were not sent (continuous sending).
0x0F: Internal error
xCOM_PORT_IS_OPEN
BOOL
Interface is open
Graphical illustration:
Function description:
The FbSMI_Master function block can be used to connect the SMI interface 789-
912/913 to the WAGO-I/O-SYSTEM. This block captures all pending commands of
the other SMI blocks in the program and ensures their execution. The commands are
made available in the form of a data table via the variable "typSMI". The input/output
variable ":typSMI" contains all relevant call parameters and data for the sent /
received SMI telegrams.
Communication between the SMI interface and the WAGO-I/O-SYSTEM takes place
via a RS232 connection. The serial module 750-652 is used with the following
settings as interface:
Baud rate: 2400
Data bits: 8
Stop bits: 1
Parity: No
transfer optimization Send: One
operating mode: RS-232
Subject to design changes WAGO Kontakttechnik GmbH & Co. KG P.O. box 2880 • D-32385 Minden Phone: 05 (71) 8/87 – 0 E-Mail: info@wago.com
Copyright © 2012 Hansastr. 27 • D-32423 Minden Fax.: 05 71 / 8 87-169 Web:http://www.wago.com
8
SMI Master (FbSMI_Master)
The number of the serial port to be used can be set at the "bCOM_PORT_NR" input.
Example:
0 -> On_Board interface (e.g., 750-830 or 750-873)
1 -> Internal service port
2 ->1st connected serial module 750-652
3 -> 2nd connected serial module 750-652
An error can be identified by the error code that is displayed at the output "bError".
The "xCOM_PORT_IS_OPEN" output signals whether the COM port of the selected
interface is open.
Note:
When using a controller with the On-Board interface (e.g., 750-830), it can also
be used with the 750-652 module.
The 750-650/003-000 module can also be used as an alternative to the 750-652
module. In this case, the program cycle time should not be longer than approx.
30 ms if at all possible. This ensures that the reaction rate of the control
commands is sufficient.
All SMI function blocks that are linked with the "typSMI" variable should be called
up in cycles within the same program task.
Subject to design changes WAGO Kontakttechnik GmbH & Co. KG P.O. box 2880 • D-32385 Minden Phone: 05 (71) 8/87 – 0 E-Mail: [email protected]
Copyright © 2012 Hansastr. 27 • D-32423 Minden Fax.: 05 71 / 8 87-169 Web:http://www.wago.com
9
Blind Controller (FbSMI_MOTOR)
Blind Function Block
Blind Controller (FbSMI_MOTOR)
WAGO-I/O-PRO CAA Library Elements
Category:
Building Automation
Name:
FbSMI_MOTOR
Type:
Function
Function block X
Program
Name of library:
SMI_02.lib
Applicable to:
See Release Note
Input parameter:
Data type:
Comment:
bAddress
BYTE
Slave address
wGroup
WORD
Group mask with binary-coded
slave address:
Bit_0 = Slave address 0
Bit_1 = Slave address 1
etc.
xUp
BOOL
Switch command Blind/Lamella UP
xDown
BOOL
Switch command Blind/Lamella DOWN
xSafetyPosition
BOOL
Signal input: safety position
xLockBlind
BOOL
Blind lock
xSetPosition
BOOL
Move into position
rSetPosition_Blind
REAL
Height position of the Blind [%]
0% = Upper end position
100% = Lower end position
rSetPosition_Lamella
REAL
Lamella position of the Blind [%]
0% = Lamella open
100% = Lamella closed
xMoveToShadowPosition
BOOL
Move to shadow position
rShadowPosition_Blind REAL Height position of the Blind [%]
0% = Upper end position
100% = Lower end position
rShadowPosition_Lamella
REAL
Lamella position of the Blind [%]
0% = Lamella open
100% = Lamella closed
xSetOverride
BOOL
Set the manual override
xResetOverride
BOOL
Reset the manual override
typSMI_Config
typSMI_Co
nfig
SMI - Configuration data
Subject to design changes WAGO Kontakttechnik GmbH & Co. KG P.O. box 2880 • D-32385 Minden Phone: 05 (71) 8/87 – 0 E-Mail: info@wago.com
Copyright © 2012 Hansastr. 27 • D-32423 Minden Fax.: 05 71 / 8 87-169 Web:http://www.wago.com
10
Blind Controller (FbSMI_MOTOR)
.xAutoMoveUp
BOOL
Automatically move up after completing the
manual override
Default setting = FALSE
.bRadMechanicRev
erse
BYTE
Compensation for the mechanical dead
time
Default setting = 10°
.bType BYTE Blind type
Default setting = 1
.tShortPressTime
TIME
Brief period allocated to push button
Default = t#500ms
.tDisableAutomatic
TIME
Time until the manual override is
automatically reset
Default setting = 60 min
.rAngle_of_Tilt
BYTE
Total travel angle of the lamella from
completely open to completely closed [°]
Default setting = 90°
.bRad_MotorStep BYTE Motor shifts by x angular degrees with brief
push of button
Default setting = 10°
Input/output parameter:
Data type:
Comment:
typSMI
typSMI
SMI send and receive data (internal)
See FbSMI_Master for description
Return value:
Data type:
Comment:
xReady
BOOL
TRUE = communication deactivated
FALSE = communication activated
eSMI_Error
eSMI_Erro
r
Indication of communication errors:
SMI_OK
SMI_TimeOut
SMI_CRC_Error
SMI_NACK
rPosition_Blind
REAL
Position of the Blind [%]
rPosition_Lamella
REAL
Position of the lamella [%]
xAutomaticOverride
BOOL
Manual override
Subject to design changes WAGO Kontakttechnik GmbH & Co. KG P.O. box 2880 • D-32385 Minden Phone: 05 (71) 8/87 – 0 E-Mail: [email protected]
Copyright © 2012 Hansastr. 27 • D-32423 Minden Fax.: 05 71 / 8 87-169 Web:http://www.wago.com
11
Blind Controller (FbSMI_MOTOR)
Graphical illustration:
Function description:
The FbSMI_MOTOR function block controls Blinds with an SMI interface. The
module provides the following control functions:
UP/DOWN motion command and lamella shift
Move to a defined shadow position
Move to a defined lamella position
Move to safety position with interlocking feature (e.g., wind alarm)
Blind lock
Selection possibility between manual/automatic mode
Acknowledgement of the Blind position
The function block may only be used with the SMI master function block
(FbSMI_Master). The two function blocks are synchronized via the "typSMI"
variable structure and must therefore be linked to each other.
The inputs "bAddress" and "wGroup" define whether the function block
communicates with one or several SMI slaves. The following addressing types are
possible:
Random addressing
bAddress = SlaveAdr (0-15)
wGroup = 0
Group addressing
bAddress = 0
wGroup = bitcodiert (e.g., 2#0000 0000 0001 0001 for slave addresses 0 and 4)
Subject to design changes WAGO Kontakttechnik GmbH & Co. KG P.O. box 2880 • D-32385 Minden Phone: 05 (71) 8/87 – 0 E-Mail: info@wago.com
Copyright © 2012 Hansastr. 27 • D-32423 Minden Fax.: 05 71 / 8 87-169 Web:http://www.wago.com
12
Blind Controller (FbSMI_MOTOR)
The SMI drive is controlled by two button inputs: "xUP" and "xDOWN." An extended
button press on one of these inputs (longer than the configured time,
"typSMI_Config.tShortPressTime") causes the motor to move to the upper or lower
end position (configured at the motor). If the input signal is shorter than the
configured time, a STOP telegram or telegram indicating lamella shift is sent.
The safety position (upper end position) of the Blind (e.g., for the wind alarm) can be
controlled via the "xSafetyPosition" input. When the blind has been moved to the
safety position, it cannot be manually controlled until the "xSafetyPosition" input has
been reset. For safety reasons, the function block sends the UP motion command
every 3 minutes if the safety position is activated.
The "xLockBlind" can lock the blind control. Current motion commands are not
canceled. If the "xLock" input is TRUE, the blind can only be moved to the safety
position (e.g., for the wind alarm).
A rising edge at the "xSetPosition" input means that a motion command to the
positions specified at the "rSetPosition_Blind" and "rSetPosition_Blind" inputs is
executed.
The "xMoveToShadowPosition" input is primarily used to bring the blind into a
shadow position. If the signal at this input is TRUE, the drive moves to the configured
height and lamella angle position ("rShadowPosition_Blind" and
"rShadowPosition_Lamella"). The height position is always approached from below
to ensure a unique lamella position. As long as the "xMoveToShadowPosition" input
signal is TRUE, value changes in the "rShadowPosition_Blind" and
"rShadowPosition_Lamella" inputs are tracked. A minimum value change of 5% is
considered as the hysteresis.
The automatic sun protection can be overriden. In other words, new commands via
the "xMoveToShadowPosition", "rShadowPosition_Blind" and
"rShadowPosition_Lamella" inputs are not evaluated. The automatic sun protection
is overridden for the configured time "typSMI_Config.tDisableAutomatic" if:
a) A motion command was initiated via one of the "xUp" or "xDown" inputs.
b) A position was approached via the "xSetPosition" input.
c) The "xSetOverride" input with signal TRUE is connected. It should be noted
that the time only runs if the signal is switched to FALSE again. That means
that the automatic sun protection can be overridden longer than the time set.
The automatic sun protection can be terminated early via a signal TRUE at the
"xResetOverride" input. If the input is connected permanently with TRUE, then the
override function is disabled. After terminating the override, the blind moves to the
position specified by the automatic sun protection.
In addition, manual override is reset by signals to the "xLockBlind" and
"xSafetyPosition" inputs. The "xAutomaticOverride" output signals that the
automatic sun protection is overridden.
Subject to design changes WAGO Kontakttechnik GmbH & Co. KG P.O. box 2880 • D-32385 Minden Phone: 05 (71) 8/87 – 0 E-Mail: [email protected]
Copyright © 2012 Hansastr. 27 • D-32423 Minden Fax.: 05 71 / 8 87-169 Web:http://www.wago.com
13
Blind Controller (FbSMI_MOTOR)
Configuration parameters:
The "typSMI_Config" input variable includes all necessary configuration parameters
for motor control:
"typSMI_Config.xAutoMoveUp" defines if the UP command should be
sent after completing the manual override (falling edge at the
"xAutomaticOverride" output) or if the position of the drive should be
maintained.
"typSMI_Config.bRadMechanicReverse" is the value in angular degree
for compensation of the mechanical dead time. Due to tightening of the
webbing, a dead time elapses until the lamella first responds.
"typSMI_Config.bType" defines the blind type and displays how the blind
moves. The blind type is identified by the position of the lamella per direction
of motion:
Type 1: down closed / up open
"typSMI_Config.tShortPressTime" specifies the extended period allocated
to push the button.
"typSMI_Config.tDisableAutomatic" specified the time for overridding the
automatic function.
"typSMI_Config.rAngle_of_Tilt" is the parameter for the possible
adjustable range of the lamella angle from completely open to completely
closed.
"typSMI_Config.bRad_MotorStep" defines by how many angular degrees
the lamellas should be shifted in the case of a brief button push.
Communication with the SMI interface is activated when the "xReady" output is
FALSE. After the communication is completed, the output switches to the TRUE
signal.
An error can be identified by the current communication status as displayed at output
"eSMI_Error."
The "rPosition_Blind" output returns the current position of the blind as an
acknowledgement. If the function block recognizes a current motion command, the
current position is requested every two seconds. If no motion command can be
found on the function block, the position request recurs in 30-second cycles. The
lamella position is reported via the "rPosition_Lamella" output. The lamella position
is not returned as a direct value from the drive, but is calculated interally by the
function block. An undefined position (e.g., after resetting the controller) appears as
the value 255.
Subject to design changes WAGO Kontakttechnik GmbH & Co. KG P.O. box 2880 • D-32385 Minden Phone: 05 (71) 8/87 – 0 E-Mail: info@wago.com
Copyright © 2012 Hansastr. 27 • D-32423 Minden Fax.: 05 71 / 8 87-169 Web:http://www.wago.com
14
Blind Controller (FbSMI_MOTOR)
Notes:
In group addressing, the position acknowledgement always occurs via the
smallest individual address within the group, since the position request cannot
be carried out using a group command. Thus, using this function block means it
cannot be determined whether a group's motors have different positions.
The positions are always approced from below. This means that the motor
initially starts positioning from a lower position than the target position so that the
target position can then be reached using an UP motion command. In this way,
an exact lamella position is guaranteed.
The "rShadowPosition_Blind" and "rShadowPosition_Lamella" position
parameters should always be written synchronously when the
"xMoveToShadowPosition" input is set because a STOP command is triggered
for each change in position on one of the intputs.
The "typSMI_Config" structure should be declared RETAIN PERISISTENT, so
that set parameters are retained after a controller reset or a program download.
The module currently supports blind type 1 only.
Subject to design changes WAGO Kontakttechnik GmbH & Co. KG P.O. box 2880 • D-32385 Minden Phone: 05 (71) 8/87 – 0 E-Mail: [email protected]
Copyright © 2012 Hansastr. 27 • D-32423 Minden Fax.: 05 71 / 8 87-169 Web:http://www.wago.com
15
Diagnostic (FbSMI_DIAGNOSTIC)
Basic Function Block
Diagnostic (FbSMI_DIAGNOSTIC)
WAGO-I/O-PRO CAA Library Elements
Category:
Building Automation
Name:
FbSMI_DIAGNOSTIC
Type:
Function
Function block X
Program
Name of library:
SMI_02.lib
Applicable to:
All programmable fieldbus controllers
Input parameter:
Data type:
Comment:
xStart
BOOL
A rising edge starts the command
xManufacturer
BOOL
Activation of manufacturer address
bAddress
BYTE
Slave address or manufacturer's address
Input/output parameter:
Data type:
Comment:
typSMI
typSMI
SMI send and receive data (internal)
See FbSMI_Master for description
Return value:
Data type:
Comment:
xReady BOOL TRUE = communication deactivated
FALSE = communication activated
eSMI_Error
eSMI_Erro
r
Indication of communication errors:
SMI_OK
SMI_TimeOut
SMI_CRC_Error
SMI_NACK
eSMI_Diagnostic eSMI_Diag
nostic
response to diagnostic command:
IDLE_SMI
UP_DOWN_STOP
UP_DOWN
UP_STOP
ALL_UP
DOWN_STOP
ALL_DOWN
ALL_STOP
INVALID_SMI
xMotor_Failure
BOOL
Indication of motor failure
Graphical illustration:
Subject to design changes WAGO Kontakttechnik GmbH & Co. KG P.O. box 2880 • D-32385 Minden Phone: 05 (71) 8/87 – 0 E-Mail: info@wago.com
Copyright © 2012 Hansastr. 27 • D-32423 Minden Fax.: 05 71 / 8 87-169 Web:http://www.wago.com
16
Diagnostic (FbSMI_DIAGNOSTIC)
Function description:
The FbSMI_DIAGNOSTIC function block makes it possible to initiate the request for
an SMI diagnostic response. The function block may only be used with the SMI
master function block (FbSMI_Master). The two function blocks are synchronized via
the "typSMI" variable structure and must therefore be linked to each other.
The request for a diagnostic response is initiated by a rising edge at the "xStart"
input.
The inputs "xManufacturer" and "bAddress" define whether the function block
communicates with one or several SMI slaves. The following addressing types are
possible:
Broadcast
xManufacturer = TRUE
bAddress = 0
Manufacturer addressing
xManufacturer = TRUE
bAddress = manufacturer address 0-15 (see table in appendix)
Random addressing
xManufacturer = FALSE
bAddress = 0-15
Communication with the SMI interface is activated when the "xReady" output is
FALSE. After the communication is completed, the output switches to the TRUE
signal.
An error can be identified by the current communication status as displayed at output
"eSMI_Error."
The "eSMI_Diagnostic" output returns the diagnostic response. The response can
be used to deduce which motion commands (if any) are to be executed. A readout is
also made to detect a possible motor failure. The status of this request is displayed
at the "xMotor_Failure" output.
Subject to design changes WAGO Kontakttechnik GmbH & Co. KG P.O. box 2880 • D-32385 Minden Phone: 05 (71) 8/87 – 0 E-Mail: [email protected]
Copyright © 2012 Hansastr. 27 • D-32423 Minden Fax.: 05 71 / 8 87-169 Web:http://www.wago.com
17
AB (FbSMI_DOWN)
AB (FbSMI_DOWN)
WAGO-I/O-PRO CAA Library Elements
Category:
Building Automation
Name:
FbSMI_DOWN
Type:
Function
Function block X
Program
Name of library:
SMI_02.lib
Applicable to:
All programmable fieldbus controllers
Input parameter:
Data type:
Comment:
xStart
BOOL
A rising edge starts the command
xManufacturer
BOOL
Activation of manufacturer address
bAddress
BYTE
Slave address or manufacturer's address
wGroup
WORD
Group mask with binary-coded
slave address:
Bit_0 = Slave address 0
Bit_1 = Slave address 1
etc.
Input/output parameter:
Data type:
Comment:
typSMI typSMI SMI send and receive data (internal)
See FbSMI_Master for description
Return value:
Data type:
Comment:
xReady
BOOL
TRUE = communication deactivated
FALSE = communication activated
eSMI_Error
eSMI_Erro
r
Indication of communication errors:
SMI_OK
SMI_TimeOut
SMI_CRC_Error
SMI_NACK
Graphical illustration:
Subject to design changes WAGO Kontakttechnik GmbH & Co. KG P.O. box 2880 • D-32385 Minden Phone: 05 (71) 8/87 – 0 E-Mail: info@wago.com
Copyright © 2012 Hansastr. 27 • D-32423 Minden Fax.: 05 71 / 8 87-169 Web:http://www.wago.com
18
AB (FbSMI_DOWN)
Function description:
The "FbSMI_DOWN" function block sends commands for the DOWN motion
command. The function block may only be used with the SMI master function block
(FbSMI_Master). The two function blocks are synchronized via the "typSMI"
variable structure and must therefore be linked to each other.
The command is sent by a rising edge at the "xStart" input.
The three inputs "xManufacturer," "bAddress" and "wGroup" define whether the
function block communicates with one or several SMI slaves. The following
addressing types are possible:
Broadcast
xManufacturer = TRUE
bAddress = 0
Manufacturer addressing
xManufacturer = TRUE
bAddress = manufacturer address (0-15; see table in appendix)
Random addressing
xManufacturer = FALSE
bAddress = 0-15
Group addressing
xManufacturer = TRUE
bAddress = 0
wGroup = e.g., (2#0000 0000 0001 0001) for slave addresses 0 nd 4)
Communication with the SMI interface is activated when the "xReady" output is
FALSE. After the communication is completed, the output switches to the TRUE
signal.
An error can be identified by the current communication status as displayed at output
"eSMI_Error."
Subject to design changes WAGO Kontakttechnik GmbH & Co. KG P.O. box 2880 • D-32385 Minden Phone: 05 (71) 8/87 – 0 E-Mail: [email protected]
Copyright © 2012 Hansastr. 27 • D-32423 Minden Fax.: 05 71 / 8 87-169 Web:http://www.wago.com
19
AUF (FbSMI_UP)
AUF (FbSMI_UP)
WAGO-I/O-PRO CAA Library Elements
Category:
Building Automation
Name:
FbSMI_UP
Type:
Function
Function block X
Program
Name of library:
SMI_02.lib
Applicable to:
All programmable fieldbus controllers
Input parameter:
Data type:
Comment:
xStart
BOOL
A rising edge starts the command
xManufacturer
BOOL
Activation of manufacturer address
bAddress
BYTE
Slave address or manufacturer's address
wGroup WORD Group mask with binary-coded
slave address:
Bit_0 = Slave address 0
Bit_1 = Slave address 1
etc.
Input/output parameter:
Data type:
Comment:
typSMI
typSMI
SMI send and receive data (internal)
See FbSMI_Master for description
Return value:
Data type:
Comment:
xReady
BOOL
TRUE = communication deactivated
FALSE = communication activated
eSMI_Error
eSMI_Erro
r
Indication of communication errors:
SMI_OK
SMI_TimeOut
SMI_CRC_Error
SMI_NACK
Graphical illustration:
Subject to design changes WAGO Kontakttechnik GmbH & Co. KG P.O. box 2880 • D-32385 Minden Phone: 05 (71) 8/87 – 0 E-Mail: info@wago.com
Copyright © 2012 Hansastr. 27 • D-32423 Minden Fax.: 05 71 / 8 87-169 Web:http://www.wago.com
20
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60
  • Page 61 61
  • Page 62 62
  • Page 63 63
  • Page 64 64
  • Page 65 65
  • Page 66 66

WAGO SMI 02 User manual

Type
User manual

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI