SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR...

195

Transcript of SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR...

Page 1: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON
Page 2: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 2

Page 3: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 3

Table of Contents

BLOCK SELECTION GUIDE ...................................................................................7

AN ADD DOUBLE....................................................................................................10

AN MUX16 BIN..........................................................................................................12

AN SUB DOUBLE....................................................................................................14

AN SWITCH DPST ...................................................................................................16

ANALOG ADD...........................................................................................................18

ANALOG CLAMP......................................................................................................20

ANALOG DEMUX16.................................................................................................21

ANALOG LATCH......................................................................................................23

ANALOG LATCH16..................................................................................................24

ANALOG MULTIPLY................................................................................................26

ANALOG MUX8 BCD...............................................................................................28

ANALOG MUX8 BIN.................................................................................................30

ANALOG SUBTRACT.............................................................................................32

ANALOG SWITCH....................................................................................................34

GAIN1..........................................................................................................................35

GAIN2..........................................................................................................................37

GAIN2 DOUBLE........................................................................................................39

NEGATE.....................................................................................................................41

PEAK DETECT .........................................................................................................43

RAMP ..........................................................................................................................44

DIAMETER CALC.....................................................................................................46

INERTIA COMP .........................................................................................................48

LAG..............................................................................................................................50

LEAD-LAG .................................................................................................................51

PI LOOP......................................................................................................................52

POSITION REG.........................................................................................................55

PULSE SPEED .........................................................................................................57

PULSE SPEED2.......................................................................................................58

Page 4: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 4

SPEEDLOOP.............................................................................................................60

TACH LOSS...............................................................................................................64

EQUAL........................................................................................................................66

LOGIC AND 2 ............................................................................................................67

LOGIC AND 5 ............................................................................................................69

LOGIC AND 6 ............................................................................................................71

LOGIC INVERT 1 ......................................................................................................73

LOGIC INVERT 16....................................................................................................74

LOGIC LATCH...........................................................................................................76

LOGIC OR 2 ...............................................................................................................77

LOGIC OR 5 ...............................................................................................................79

LOGIC OR 6 ...............................................................................................................81

LOGIC XOR 2 ............................................................................................................83

MASK INPUT.............................................................................................................84

TOGGLE.....................................................................................................................85

ABS COMPARE........................................................................................................86

GREATER EQUAL ...................................................................................................87

GREATER THAN......................................................................................................88

IN RANGE ..................................................................................................................89

IN RANGE DOUBLE ................................................................................................91

LESS THAN ...............................................................................................................93

LESS EQUAL............................................................................................................94

DELAY ........................................................................................................................95

ONE SHOT .................................................................................................................97

ONE SHOT2...............................................................................................................98

SQUARE.....................................................................................................................99

PU DELAY................................................................................................................101

TRANSPORT DELAY............................................................................................102

COUNTER................................................................................................................104

DOWN COUNTER..................................................................................................106

LENGTH COUNT....................................................................................................107

Page 5: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 5

UP COUNTER .........................................................................................................109

UP COUNTER5.......................................................................................................110

BCD TO BINARY....................................................................................................112

BINARY TO BCD....................................................................................................113

LOGICTOWORD.....................................................................................................114

PER UNIT .................................................................................................................115

SCALER...................................................................................................................117

WORDTOLOGIC .....................................................................................................118

CA401 INPUT..........................................................................................................119

CA402 OUTPUT......................................................................................................120

CA403 INPUT..........................................................................................................121

CA403 OUTPUT......................................................................................................123

CA404 OUTPUT......................................................................................................124

CA407 INPUT..........................................................................................................125

CA407 OUTPUT......................................................................................................128

CA412 INPUT..........................................................................................................130

CA412 OUTPUT......................................................................................................132

CA413 D2D RX .......................................................................................................134

CA413 D2D STATUS.............................................................................................135

CA413 D2D TX ........................................................................................................138

CA413 DATALINK IN .............................................................................................139

CA413 DATALINK OUT ........................................................................................141

CA413 FAULT INFO...............................................................................................143

CA413 SP STATUS................................................................................................144

CA413 T2 INPUT ....................................................................................................147

CA413 T2 OUTPUT................................................................................................150

CA416-2 INPUT.......................................................................................................153

CA419 INPUT..........................................................................................................154

CA419 OUTPUT......................................................................................................156

ENET IO NODES ....................................................................................................158

ENET IO SLOT INFO..............................................................................................159

Page 6: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 6

ENET IO STATUS...................................................................................................160

ENET SLOT IN ........................................................................................................162

ENET SLOT OUT....................................................................................................164

SAFLINK READ......................................................................................................166

SAFLINK WRITE ....................................................................................................168

COMM READ REG.................................................................................................170

COMM STATUS ......................................................................................................171

COMM WRITE REG................................................................................................174

ENCODER ...............................................................................................................175

ETHERNET STATUS ............................................................................................177

FIFO...........................................................................................................................179

GLOBAL READ.......................................................................................................180

GLOBAL WRITE.....................................................................................................182

MB SLAVE NODE ..................................................................................................183

LOOKUP 16 .............................................................................................................184

LOOKUP 4 ...............................................................................................................186

RUNNING AVG .......................................................................................................188

SAVE.........................................................................................................................190

SYSTEM CONFIG...................................................................................................192

CONTACT US .........................................................................................................195

Page 7: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 7

Block Selection Guide ANALOG BLOCKS

An Add Double add two 32 bit inputs to form a 32 bit result An Mux16 Bin multiplex between 16 inputs based on a numeric input An Sub Double subtract two 32 bit numbers with a 32 bit result An Switch DPST double pole single throw switch function Analog Add 16 bit add of two numbers Analog Clamp clamp an output based on high and low settings Analog Demux16 demultiplex 1 input into 16 outputs based on a numeric input Analog Latch latch one analog value Analog Latch 16 latch 16 analog values Analog Multiply perform a perunit multiply Analog Mux8 Bin multiplex between 8 inputs based on 3 input bits Analog Mux8 BCD multiplex between 8 inputs based in an input count Analog Subtract subtract two 16 bit numbers Analog Switch switch between two numeric inputs based on a logical input Gain1 apply a specified gain to a numeric input with a 16 bit result Gain2 apply a specified gain to a numeric input with a 32 bit result Gain2 Double apply a specified gain to a 32 bit numeric input with a 32 bit result Negate negate or zero an output based on control inputs Peak Detect record minimum and maximum values of an input Ramp perform a four quadrant ramp function

DRIVE CONTROL BLOCKS Diameter Calc calculate the diameter of changing roll based on core and line speeds Inertia Comp calculate the inertia of a variable width and diameter roll Lag first order lag function Lead-Lag user-configurable lead-lag or lag-lead function PI Loop standard proportional plus integral control loop Position Reg dynamic position regulator Pulse Speed convert encoder pulses to perunit speed feedback Pulse Speed2 convert resolver pulses to perunit speed feedback Speedloop standard proportional plus integral control loop for use with an encoder Tach Loss detect lost or reversed encoder

LOGIC BLOCKS Logic AND 2 2 input AND function Logic AND 5 5 input AND function Logic AND 6 6 input AND function with 3 normally open and 3 normally closed inputs Logic Invert 1 1 input invert function Logic Invert 16 16 input invert function Logic Latch latch of a logical input Logic OR 2 2 input OR function Logic OR 5 5 input OR function Logic OR 6 6 input OR function with 3 normally open and 3 normally closed inputs

Page 8: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 8

Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function

COMPARISON BLOCKS ABS Compare compare function using absolute value Equal compare 2 inputs asserting an output if they are equal Greater Equal compare 2 inputs asserting an output if the first is greater than or equal Greater Than compare 2 inputs asserting an output if the first is greater than In Range detect a 16 bit input being within one of three ranges In Range Double detect a 32 bit input being within one of three ranges Less Equal compare 2 inputs asserting an output if the first is less than or equal Less Than compare 2 inputs asserting an output is the first is less than

TIME BASED BLOCKS Delay time delay of change in states One Shot one shot based on a change of state of an input (time in 10ths of sec) One Shot2 one shot based on a change of state of an input (time in millisec) Square generate a variable duty cycle and frequency square wave Pu Delay generate an active output for a specified time after power up Transport Delay apply a time delay to a numeric input signal

COUNTER BLOCKS Counter count up or down based on the change of states of an input Down Counter count down based on the change of state of an input Length Count decrement a 32 bit count based on a numeric input Up Counter count up based on a numeric input, adjustable boundary and 2 outputs Up Counter5 count up based on a numeric input, 4 adjustable boundaries and 5 outputs

CONVERSION BLOCKS BCD To Binary convert a BCD number to binary Binary To BCD convert a binary number to BCD LogictoWord convert 16 logical inputs to a numeric output Per Unit convert a number to its perunit equivalent Scaler scale a number based on numerator and denominator WordtoLogic convert a numeric input to 16 logical outputs

SAFphire INPUT / OUTPUT BLOCKS CA401 Input read 16 input channels from a CA401 input card CA402 Output write 16 output channels to a CA402 output card CA403 Input read inputs from a CA403 multi IO card CA403 Output write outputs to a CA403 multi IO card CA404 Output write outputs to a CA404 analog output card CA407 Input read inputs from a CA407 drive interface card

Page 9: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 9

CA407 Output write outputs to a CA407 drive interface card CA412 Input read inputs from a CA412 encoder input/analog output card CA412 Output write outputs to a CA412 encoder input/analog output card CA413 SP Status read status counters from a CA413S Scanport interface card CA413 D2D Status read status counters from a CA413D D2D interface card CA413 DL In read up to 4 DataLinks from a Scanport device CA413 DL Out write up to 4 DataLinks to a Scanport device CA413 Flt Info read the current fault info from a Scanport device CA413 D2D Rx read 2 words of data from a D2D device CA413 D2D Tx write 2 words of data to a D2D device CA413 T2 Input read status and feedback information from a Scanport device CA413 T2 Output write control and reference information to a Scanport device CA416-2 Input read position inputs from a CA416 position input card CA417 Input read one DATASET from a CA417 DDCS interface card CA417Output write one DATASET to a CA417 DDCS interface card CA419 Input read one DATASET from a CA419 DDCS interface card CA419Output write one DATASET to a CA419 DDCS interface card Enet IO Nodes display Ethernet IO nodes on the network Enet IO Status display status information for all Ethernet IO nodes Enet IO Slot Info display status information for 1 slot of Ethernet IO. Enet Slot Out write data to 1 slot of Ethernet IO Enet Slot In read data from 1 slot of Ethernet IO SAFlink Read 32 word read from a CA414 SAF-Link card SAFlink Write 32 word write to a CA414 SAF-Link card

MISCELLANEOUS BLOCKS Comm Read Read 8 words from the communications registers Comm Status Read Status information for the Serial Ports Comm Write Write 8 words to the communications registers Ethernet Status Read status counters for the Ethernet Port Encoder 15 bit priority encoder FIFO 32 word First In First Out Function Global Read Read 8 words of Global Data from another SAFphire Node Global Write Write 8 words of Global Data for another SAFphire Node Lookup 4 4 point x-y lookup table Lookup 16 16 point x-y lookup table MB Slave Node set node number of Modbus Slave device Running Avg running average block with variable points and sample time Save save up to 16 parameters during power down Sys Config general system configuration functions including execution time and scan time

Page 10: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 10

An Add Double

This block is designed to add two numeric double word inputs and present the result in double word form as the output of this block. OUTPUT HIGH is signed and will clamp at +32767 or -32768. OUTPUT LOW is displayed as a signed number but is internally treated as an unsigned number. OUTPUT HI and OUTPUT LO combine to produce a 32 bit signed output in the range of +2147483647 to -2147483648

INPUT 1 HIGH This input is the hi word of the first double word input that is to be added.

INPUT 1 LOW This input is the lo word of the first double word input that is to be added. This input is treated internally as an unsigned number

INPUT 2 HIGH This input is the hi word of the second double word input that is to be added.

INPUT 2 LOW This input is the lo word of the second double word input that is to be added. This input is treated internally as an unsigned number

OUTPUT HIGH This output is the hi word of the result of the addition of the two double word inputs.

OUTPUT LOW This output is the lo word of the result of the addition of the two double word inputs. Although this output is displayed as a signed number, it represents the unsigned lo portion of the result

EXAMPLES INPUT 1 HIGH 0 INPUT 1 LOW 1 INPUT 2 HIGH 0 INPUT 2 LOW 2 OUTPUT HIGH 0 OUTPUT LOW 3

Page 11: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 11

INPUT 1 HIGH 0 INPUT 1 LOW -25536 (40000 unsigned) INPUT 2 HIGH 0 INPUT 2 LOW 30000 OUTPUT HIGH 1 OUTPUT LOW 4464 (1*65536 + 4464 = 70000) INPUT 1 HIGH -1 INPUT 1 LOW -5 INPUT 2 HIGH -1 INPUT 2 LOW -10 OUTPUT HIGH -1 OUTPUT LOW -15 NOTE: negative numbers must be sign extended to the HI inputs.

Page 12: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 12

An Mux16 Bin

This block is designed to act as an analog multiplexer. The OUTPUT is set equal to one of sixteen numeric inputs based on the value of COUNT INPUT.

ENABLE This input being ON allows the output of this block to be updated. When this input is OFF, the output of this block will not change value.

COUNT INPUT This is the numeric input which selects which of the 16 (0-15) inputs to set the OUTPUT to. If this number is a value other than 0 to 15 and the block is enabled, the OUTPUT will be zero.

Page 13: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 13

COUNT INPUT OUTPUT <0 0 0 INPUT0 1 INPUT1 2 INPUT2 3 INPUT3 4 INPUT4 5 INPUT5 6 INPUT6 7 INPUT7 8 INPUT8 9 INPUT9 10 INPUT10 11 INPUT11 12 INPUT12 13 INPUT13 14 INPUT14 15 INPUT15 >15 0

INPUT 0-INPUT 15 These are the numeric inputs which contain the sixteen possible values for the output. The OUTPUT will be equal to the numeric input corresponding to the count input

OUTPUT This output is the numeric output which is set equal to one of the numeric inputs based on the value of the COUNT INPUT.

Page 14: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 14

An Sub Double

This block is designed to subtract one numeric double word input from another double word input and present the result in double word form as the output of this block. OUT HI is signed and will clamp at +32767 or -32768. OUT LO is displayed as a signed number but is internally treated as an unsigned number. out HI and OUT LO combine to produce a 32 bit signed output in the range of +2147483647 to -2147483648

IN 1 HI This input is the hi word of the first double word input that the second is subtracted from.

IN 1 LO This input is the lo word of the first double word input that the second is subtracted from This input is treated internally as an unsigned number

IN 2 HI This input is the hi word of the second double word input that is to be subtracted from the first.

IN 2 LO This input is the lo word of the second double word input that is to be subtracted from the first. This input is treated internally as an unsigned number

OUT HI This output is the hi word of the result of the subtraction of the two double word inputs.

OUT LO This output is the lo word of the result of the subtraction of the two double word inputs. Although this output is displayed as a signed number, it represents the unsigned lo portion of the result

EXAMPLES IN 1 HI 0 IN 1 LO 2 IN 2 HI 0 IN 2 LO 1

Page 15: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 15

OUT HI 0 OUT LO 1 IN 1 HI 0 IN 1 LO -25536 (40000 unsigned) IN 2 HI 0 IN 2 LO 30000 OUT HI 0 OUT LO 10000 NOTE: negative numbers must be sign extended to the HI inputs.

Page 16: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 16

An Switch DPST

This block is designed to act as a double pole single throw switch.

CONTROL

This logical input controls both switches.

INPUT1 ON This input will be the value of OUTPUT 1 when control is ON.

INPUT1 OFF This input will be the value of OUTPUT 1 when control is OFF.

INPUT2 ON This input will be the value of OUTPUT 2 when control is ON.

INPUT2 OFF This input will be the value of OUTPUT 2 when control is OFF.

OUTPUT 1 This output will be either OUTPUT1 ON or OUTPUT1 OFF depending on the state of CONTROL

Page 17: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 17

OUTPUT 2 This output will be either OUTPUT2 ON or OUTPUT2 OFF depending on the state of CONTROL

Page 18: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 18

Analog Add

This block is designed to add two numeric inputs and present the result as the output of this block. The answer is signed and will clamp at +32767 or -32768.

FIRST This input is one of the numeric inputs to be added.

SECOND This input is one of the numeric inputs to be added.

ENABLE This input being ON allows the output of this block to be updated. When this input is OFF, the output of this block will not change value.

SUM This output is the numerical result of the addition. This output is signed and is clamped at +32767 or -32768.

Examples: FIRST = 4 SECOND = 3 ENABLE = ON OUTPUT = 7 FIRST = 4 SECOND = 3 ENABLE = OFF OUTPUT = previous value of output FIRST = 10000 SECOND = -20000 ENABLE = ON OUTPUT = -10000

Page 19: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 19

FIRST = 20000 SECOND = 20000 ENABLE = ON OUTPUT = 32767

Page 20: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 20

Analog Clamp

This block is designed to implement an analog clamp function.

ENABLE This input being ON allows the outputs of this block to be updated. When this input is OFF, the outputs of this block will not change value.

INPUT This input is the value to be clamped.

MIN This input is the minimum value which the output may take.

MAX This input is the maximum value which the output may take.

CLAMPED This logical output will be ON when INPUT is greater than MAX or less than MIN.

OUTPUT This is the output of the clamp. If the INPUT is less than or equal to MAX or if the INPUT is greater than or equal to MIN, the output is equal to the input. Otherwise the output is clamped at the MIN or MAX values. This output will not change value when the ENABLE input is OFF

Page 21: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 21

Analog Demux16

This block is designed to act an an analog demultiplexer. When the ENABLE input is ON, and the COUNT input is in the range of 0 to 15, the OUTPUT corresponding to the value of the COUNT INPUT is set equal to the INPUT. The remaining OUTPUTs are unchanged. If ENABLE is OFF or if COUNT is not in the range of 0 to 15, no outputs will change.

ENABLE This input being ON allows the outputs of this block to be updated. When this input is OFF, the outputs of this block will not change value.

COUNT INPUT These is the numeric input which selects which of the 16 (0-15) outputs to set to the value of INPUT. If this number is a value other than 0 to 15 no outputs will change value.

INPUT

Page 22: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 22

The value of this numeric input is is the value that the output as selected by the COUNT INPUT will be set to.

OUTPUT0-15 These outputs are the numeric outputs which are set equal to the INPUT based on the value of the COUNT INPUT.

Page 23: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 23

Analog Latch

This block is designed to act as an analog latch. If the LATCH ON input is ON and the LATCH OFF input is OFF the output is latched and it will not change states. Otherwise, the output is equal to the input. The latching inputs are redundant but allow for normally open or closed operation.

LATCH ON This logical input being OFF will set the OUTPUT equal to the INPUT.

LATCH OFF This logical input being ON will set the OUTPUT equal to the INPUT.

INPUT This input is the value of the OUTPUT if LATCH ON is OFF or if LATCH OFF is ON.

OUTPUT This output will not change values if LATCH ON is ON and LATCH OFF is OFF. Otherwise this output will be equal to the INPUT.

Page 24: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 24

Analog Latch16

This block is designed to act as an analog latch for the 16 numeric inputs. If the LATCH ON input is ON and the LATCH OFF input is OFF the outputs are latched and will not change states. Otherwise, the outputs are equal to the inputs. The latching inputs are redundant but allow for normally open or closed operation.

Page 25: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 25

LATCH ON This logical input being OFF will set the OUTPUT equal to the INPUT.

LATCH OFF This logical input being ON will set the OUTPUT equal to the INPUT.

INPUT1-16 This input is the value of the OUTPUT if LATCH ON is OFF or if LATCH OFF is ON.

OUTPUT1-16 This output will not change values if LATCH ON is ON and LATCH OFF is OFF. Otherwise this output will be equal to the INPUT.

Page 26: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 26

Analog Multiply

This block is designed to perform a per unit multiply of numeric inputs and store the result as an output parameter. The answer is signed and will clamp at 32767 or -32768. Scaling is such that 28000 x 28000 = 28000

MULTIPLICAND

This input is one of the numeric inputs to be multiplied.

MULTIPLIER This input is one of the numeric inputs to be multiplied.

ENABLE This input being ON allows the output of this block to be updated. When this input is OFF, the output of this block will not change value.

PRODUCT This output is the numerical result of the multiplication. This output is signed and is clamped at +32767 or -32768.

Examples: FIRST 14000 ( 0.5 per unit ) SECOND 14000 ( 0.5 per unit ) ENABLE ON OUTPUT 7000 ( 0.25 per unit ) FIRST 14000 ( 0.5 per unit ) SECOND 14000 ( 0.5 per unit ) ENABLE OFF

Page 27: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 27

OUTPUT previous value of output FIRST 28000 ( 1.00 per unit ) SECOND -32000 ( -1.14 per unit ) ENABLE ON OUTPUT -32000 ( -1.14 per unit ) FIRST -32000 ( -1.14 per unit ) SECOND 32000 ( 1.14 per unit ) ENABLE ON OUTPUT -32768 (-1.17 per unit ) FIRST MAXRPM ( rpm ) SECOND avg spd fb ( per unit ) ENABLE ON OUTPUT avg rpm ( rpm ) The last case is an example of converting per unit values back to engineering units. If the value of avg spd fb is 28000, the output "avg rpm" will be equal to "MAXRPM".

Page 28: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 28

Analog Mux8 BCD

This block is designed to act as an analog multiplexer. The OUTPUT is set equal to one of eight numeric inputs based on the value of a COUNT INPUT.

ENABLE This input being ON allows the output of this block to be updated. When this input is OFF, the output of this block will not change value.

COUNT INPUT This is the numeric input which selects which of the 8 (0-7) inputs to set the OUTPUT to. If this number is a value other than 0 to 7 and the block is enabled, the OUTPUT will be zero.

COUNT INPUT OUTPUT <0 0 0 INPUT0 1 INPUT1 2 INPUT2 3 INPUT3 4 INPUT4 5 INPUT5 6 INPUT6 7 INPUT7 >7 0

Page 29: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 29

INPUT 0-INPUT 7 These are the numeric inputs which contain the eight possible values for the output. The OUTPUT will be equal to the numeric input corresponding to the count input

OUTPUT This output is the numeric output which is set equal to one of the numeric inputs based on the value of the COUNT INPUT.

Page 30: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 30

Analog Mux8 Bin

This block is designed to act as an analog multiplexer. The OUTPUT is set equal to one of eight numeric inputs based on the states of three logical inputs.

ENABLE This input being ON allows the output of this block to be updated. When this input is OFF, the output of this block will not change value.

BIT0-BIT2 These are the logic inputs which represent the bits of the three bit number used to select between the 8 analog inputs. BIT0 is the LSB. BIT2 is the MSB.

ANALOG 0-ANALOG 7 These are the numeric inputs which contain the eight possible values for the analog output. The OUTPUT will be equal to the numeric input corresponding to the 3 bit binary number composed of BIT0 - BIT2.

BIT2 BIT1 BIT0 OUTPUT OFF OFF OFF ANALOG0 OFF OFF ON ANALOG1 OFF ON OFF ANALOG2 OFF ON ON ANALOG3

Page 31: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 31

ON OFF OFF ANALOG4 ON OFF ON ANALOG5 ON ON OFF ANALOG6 ON ON ON ANALOG7

OUTPUT This output is the numeric output which is set equal to one of the numeric inputs based on the states of the 3 logical inputs.

Page 32: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 32

Analog Subtract

This block is designed to subtract two numeric inputs and present the result as the output of this block. The answer is signed and will clamp at +32767 or -32768.

FIRST

This input is the numeric input that the SECOND input is subtracted from. SECOND

This input is the numeric input that is subtracted from the FIRST input.

ENABLE This input being ON allows the output of this block to be updated. When this input is OFF the output of this block will not change value.

DIFFERENCE This output is the numerical result of the subtraction. This output is signed and is clamped at +32767 or-32768.

Examples: FIRST 4 SECOND 3 ENABLE ON OUTPUT 1 FIRST 4 SECOND 3 ENABLE OFF OUTPUT previous value of output

Page 33: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 33

FIRST 10000 SECOND 20000 ENABLE ON OUTPUT -10000 FIRST -20000 SECOND 20000 ENABLE ON OUTPUT -32768

Page 34: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 34

Analog Switch

This block is designed to set the block output equal to one of two block inputs based on the state of a control input.

ENABLE This input being ON allows the output of this block to be updated. When this input is OFF, the output of this block will not change value.

CONTROL This input determines whether the output of this block is equal to the OUTPUT ON parameter or the OUTPUT OFF parameter. If ENABLE is OFF the OUTPUT will not change values. If ENABLE is ON and CONTROL is ON,the OUTPUT will be equal to OUTPUT ON. If ENABLE is ON and CONTROL is OFF, the OUTPUT will be equal to OUTPUT OFF.

OUTPUT ON This input is the value of OUTPUT when CONTROL is ON and ENABLE is ON.

OUTPUT OFF This input is the value of OUTPUT when CONTROL is OFF and ENABLE is ON.

OUTPUT This is the output of the block.

Page 35: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 35

Gain1

This block is designed to subtract one input from another and multiply the result by a gain which is determined by a gain range and a gain setting. The result is clamped at 32767 or -32768.

ENABLE This input being ON allows the output of this block to be updated. When this input is OFF, the output of this block will not change value.

ADD INPUT This input is one of the parameters to be multiplied by the specified gain to get the OUTPUT value.

SUB INPUT This input is subtracted from the ADD INPUT parameter to determine the value to be multiplied by the specified gain to get the OUTPUT value.

GAIN SETTING This input is used to determine the total gain. When this parameter is 0 the resultant gain is 0. When this parameter is 1000 the resultant gain is GAIN RANGE. NOTE: Valid range is 0 to 1000.

GAIN RANGE This input is the maximum gain used to generate the OUTPUT. Actual gain = GAIN RANGE X (GAIN SETTING / 1000) NOTE: Valid range is 0 to 28000.

OUTPUT This is the result of the following equation. OUTPUT = (ADD INPUT - SUB INPUT) X Actual gain

Example: ADD INPUT = 20000 SUB INPUT = 10000 GAIN SETTING = 500

Page 36: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 36

GAIN RANGE = 3 Subtraction result = 10000 Resultant gain = (500/1000) x 3 = 1.5 Output = 15000

Page 37: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 37

Gain2

This block is designed to multiply one input by a gain which is determined by an integer gain and a fraction gain input. The result is given in high output, low output format. The high output is signed, the low output is unsigned.

ENABLE This input being ON allows the output of this block to be updated. When this input is OFF, the output of this block will not change value.

INPUT This is the input parameter to be multiplied by the total gain.

INTEGER GAIN This input is the integer portion of the total gain. NOTE: Valid INTEGER GAIN values are 0 to 32767.

FRACTION GAIN This input is the fractional portion of the total gain. total gain = integer gain + (fraction gain/1000) NOTE: Valid FRACTION GAIN values are 0 to 1000.

OUTPUT HI This output is the high portion of the result of the multiplication between the input and the total gain. This output is signed

OUTPUT LO This output is the low portion of the result of the multiplication between the input and the total gain. This output is unsigned

Examples: INPUT = 20000 INTEGER GAIN = 5 FRACTION GAIN = 500 TOTAL GAIN = (500/1000) + 5 = 5.5 RESULT = 110000 = 1ADB0 (hex)

Page 38: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 38

OUTPUT HI = 1 (1 hex) OUTPUT LO = -21072 (ADB0 hex) INPUT = 10000 INTEGER GAIN = 1 FRACTION GAIN = 2000 TOTAL GAIN = (2000/1000) + 1 = 3 OUTPUT HI = 0 OUTPUT LO = 30000

Page 39: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 39

Gain2 Double

This block is designed to multiply a 32 bit input by a gain which is determined by an integer gain and a fraction gain input. The result is given in high output, low output format. The high output is signed, the low output is unsigned.

ENABLE This input being ON allows the output of this block to be updated. When this input is OFF, the output of this block will not change value.

INPUT HI This is the high word of the input parameter to be multiplied by the total gain.

INPUT LO This is the low word of the input parameter to be multiplied by the total gain.

INTEGER GAIN This input is the integer portion of the total gain. NOTE: Valid INTEGER GAIN values are 0 to 32767.

FRACTION GAIN This input is the fractional portion of the total gain. total gain = integer gain + (fraction gain/1000) NOTE: Valid FRACTION GAIN values are 0 to 1000.

OUTPUT HI This output is the high portion of the result of the multiplication between the input and the total gain. This output is signed

OUTPUT LO This output is the low portion of the result of the multiplication between the input and the total gain. This output is unsigned

Page 40: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 40

Examples: INPUT HI = 0 INPUT LO = 20000 INTEGER GAIN = 2 FRACTION GAIN = 0 TOTAL GAIN = (0/1000) + 2 = 2 RESULT = 40000 = 9C40 (hex) OUTPUT HI = 0 (1 hex) OUTPUT LO = -25536 (9C40 hex)

Page 41: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 41

Negate

This block is designed to switch an output between two inputs or zero and negate the output if necessary.

ZERO OUTPUT This logical input forces the output to zero when OFF. When ON, the output is dependent upon the remaining inputs.

REF SWITCH This logical input determines which input is used. When ON, INPUT ON is used. When OFF, INPUT OFF is used.

NEGATE This logical input can negate the reference. When ON, the input chosen by REF SWITCH is negated ( multiplied by -1 ). When OFF the input is unchanged.

INPUT ON This input is used when REF SWITCH is ON.

INPUT OFF This input is used when REF SWITCH is OFF.

OUTPUT This is the output of the block.

Page 42: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 42

Example: ZERO OUTPUT : RUN SWITCH (0 unless in run) REF SWITCH : FAST SLOW SWITCH (ON means fast) NEGATE : FWD REV SWITCH (ON means reverse) INPUT ON : 28000 (fast preset) INPUT OFF : 7000 (slow preset)

Page 43: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 43

Peak Detect

This block is designed to hold the maximum and minimum value of an input parameter, until reset.

RESET When this input is ON, the MINIMUM is set to the highest possible integer ( 32767 ) and the MAXIMUM is set to the lowest possible integer ( -32768 ). When this input is OFF, the outputs are determined by the value of the INPUT.

INPUT This input is the value to be monitored.

MINIMUM If RESET is OFF, this output is the lowest value which the input has reached.

MAXIMUM If RESET is OFF, this output is the highest value which the input has reached.

NEW MINIMUM This logical output is ON, when the MINIMUM output changes.

NEW MAXIMUM This logical output is ON, when the MAXIMUM output changes.

Page 44: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 44

Ramp

This block is designed to act as a four quadrant ramp generator. It accepts accel and decel times in tenths of a second, limits the rate of change of the output accordingly, and provides a derivative signal which may be used for acceleration compensation.

ENABLE This input being ON allows the outputs of this block to be updated. When this input is OFF, the OUTPUT parameter will not change value and the DELTA OUTPUT parameter will be equal to zero.

CLEAR This input being OFF will set the outputs of this block to zero. This input being ON will allow the outputs of this block to be updated based on the remaining inputs.

INPUT This is the input to the ramp generator. This input should be expressed in per unit, so that the accel/decel times are meaningful.

FWD ACC TIME This numeric input is the time in tenths of a second that the output will take to accel from 0 to 28000 (1 per unit)

FWD DEC TIME This numeric input is the time in tenths of a second that the output will take to decel from 28000 (1 per unit) to 0

REV ACC TIME This numeric input is the time in tenths of a second that the output will take to accel from 0 to -28000 (-1 per unit)

REV DEC TIME This numeric input is the time in tenths of a second that the output will take to

Page 45: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 45

decel from -28000 (-1 per unit) to 0 DELTA OUTPUT

This numeric output represents the change in the output in the most recent sampling period. It can be used in conjunction with an inertia estimate for acceleration compensation.

OUTPUT This is the output of the ramp generator.

Page 46: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 46

Diameter Calc

This block is designed to perform a diameter calculation by dividing two speed signals and scaling the result. The scaling is such that the diameter output is 28000 at full roll. The LINE SPD input should be scaled so that it equals 28000 (1.0 per unit) at maximum surface speed. The CORE SPEED input should be scaled so that it equals 28000 (1.0 per unit) at maximum surface speed with empty core. The buildup defines the ratio of full roll diameter to empty roll diameter. The output can be preset and the block can be disabled until a specified core speed is reached. The actual calculation is performed less frequently as the line speed decreases.

ENABLE

This input being ON allows the output of this block to be updated. When this input is OFF, the output of this block will not change value.

LINE SPD This input represents the surface speed in per unit. The value of this input should be scaled so that it equals 28000 at maximum surface speed.

CORE SPD This input represents the core speed ( mandrel speed ) in per unit. The value should be scaled so that it equals 28000 at maximum surface speed with empty core.

BUILD UP This input defines the ratio of full roll diameter to empty roll diameter. 2 : 1 ----> 2000

Page 47: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 47

4 : 1 ----> 4000 NOTE: Valid BUILD UP values are 1000 to 16000. This allows for a buildup of 16:1.

PRESET This logical input overrides the diameter calculation and sets the output equal to PRESET VALUE when ON and the block is enabled.

PRESET VALUE The output is set to this value if both ENABLE and PRESET are ON.

MIN CORE SPD This input allows the diameter calculation to be bypassed. Because the calculation is noisy at maximum diameter ( slow core speed ) it is often convenient to wait until the core speed reaches a minimum level before allowing the roll diameter calculator to take control. The diameter is only calculated if the absolute value of CORE SPD is greater than MIN CORE SPD and PRESET is OFF and ENABLE is ON. NOTE: Valid MIN CORE SPD values are 0 to 32767.

DIAMETER This is the output of the calculation. This output will be clamped between 28000 and (28000 / (buildup/1000))

Example: LINE SPD = 28000 CORE SPD = 28000 BUILD UP = 2000 ENABLE = ON PRESET = OFF PRESET VALUE = 20000 DIAMETER = 14000 Since both surface speed and core speed are maximum, the core must be empty. Since the build up is 2 to 1, the diameter must be one half of full which is 14000.

Page 48: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 48

Inertia Comp

This block is designed to calculate the changing inertia of a roll of material as it builds up, and then multiply the calculated inertia by the derivative of a ramped reference ( acceleration reference ), which produces the desired amount of accelerating torque. If the accelerating torque is calibrated in terms of motor armature current, this value may be added to the output of a speed loop as a feed forward signal, or used in open loop tension regulation. material = (jbar full - jbar empty) x width material inertia = material x [(diameter-core diameter)**4] inertia = jbar empty + material inertia inertia comp = inertia x d/dt( speed input)

ENABLE This input being ON allows the output of this block to be updated. When this input is OFF the output of this block will be zero.

SPEED INPUT This input is the per unit speed reference for the roll. The block calculates the derivative ( slope ) of this signal internally and uses it as an acceleration reference.

DIAMETER This input is the current value of diameter expressed in per unit. A value of 0 would correspond to the center of the core and a value of 28000 would correspond to maximum diameter.

Page 49: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 49

CORE DIAMETER This is the diameter of the empty core expressed in per unit. ( If the build-up is 4 to 1, the value is 7000, If the build-up is 10 to 1 the value is 2800.)

WIDTH This input is the width of the material expressed in per unit. A value of 28000 corresponds to the widest possible roll. This value is used to scale the material inertia properly for varying roll widths.

JBAR EMPTY This input is the time in milliseconds it would take to accelerate the empty core from zero to full speed with full torque. This represents the fixed inertia of the roll.

JBAR FULL This is the time in milliseconds it would take to accelerate the largest and widest roll from 0 to full speed with full torque. The inertia calculation will go from jbar empty to this value as the diameter goes from core diameter to 28000.

INERTIA COMP This output is the result of the calculation. If all of the inputs are calibrated properly, this value will be the amount of armature current desired, to produce the desired accelerating torque.

Page 50: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 50

Lag

This block implements a first-order lag filter, with a user-defined lag time constant. The generic, frequency-domain transfer function for this block is described by the equation:

where T represents the lag time constant.

ENABLE

This input being ON allows the output of this block to be updated. This input being OFF sets the OUTPUT and all internal variables to zero

INPUT

This signal represents the input to the first-order lag. LAG TIME

This input specifies the lag time constant, expressed in milliseconds. NOTE: Valid LAG TIME values are from SAMPLE TIME (as set by a SYS CONFIG block) to 32767.

OUTPUT

This signal represents the output of the first order lag. The value saturates low and high to -32768 and +32767, respectively.

Page 51: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 51

Lead-Lag

This block implements a user-programmable lead-lag function. The user can specify the lead and lag time constants, thus configuring the function as a lead-lag or lag-lead. The generic, frequency-domain transfer function of this block is described by the following equation:

where Tld is the lead time constants, and Tlg is the lag time constant.

ENABLE

This input being ON allows the output of this block to be updated. This input being OFF sets the OUTPUT and all internal variables to zero.

INPUT

This signal represents the input to the lead-lag.

LEAD TIME

This input specifies the lead time, expressed in milliseconds. NOTE: Valid LEAD TIME values are from SAMPLE TIME (as set by a SYS CONFIG block) to 32767.

LAG TIME

This input specifies the lag time, expressed in milliseconds. NOTE: Valid LAG TIME values are from SAMPLE TIME (as set by a SYS CONFIG block) to 32767.

OUTPUT

This signal represents the output of the lead-lag. The value saturates low and high to -32768 and +32767, respectively.

Page 52: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 52

PI Loop

This block is designed to act as a proportional plus integral loop. The reference and feedback are specified as well as the proportional and integral gains. The output consists of proportional components, plus integral components plus the sumpoints. The output is clamped.

ENABLE This input being ON allows the outputs of this block to be updated. When this input is OFF, the outputs of this block will be zero.

REFERENCE This input is the reference to the regulator in PER UNIT.

INTEGRATE This logical input being ON, allows the integral component to be included in the output. When this input is OFF, the output is comprised of the proportional component, and the sumpoints.

INTEGRAL TIME This input is the integrating time of the regulator and is expressed in MILLISECONDS. The value of this input is the time in milliseconds the regulator will take to increase or decrease the integral component by the value of error. Changing the value of this input is the equivalent to changing

Page 53: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 53

the size of the capacitor in an analog PI loop. GAIN SETTING

This input determines the amount of proportional gain used in the loop. A value of 0 will yield no proportional gain. A value of 1000 will yield proportional gain equal to the GAIN RANGE. Changing this setting is equivalent to changing the proportional gain pot setting in an analog PI loop. Note: Valid GAIN SETTING values are 0 to 1000.

GAIN RANGE This input determines the maximum amount of proportional gain possible, Changing this value is the equivalent of changing the value of the proportional gain pot in an analog PI loop

POS LIMIT This input is the maximum value of the output when it is positive. This input is expressed in PER UNIT. NOTE: Valid POS LIMIT values are 0 to 32767.

NEG LIMIT This input is the maximum value of the output when it is negative. This input is expressed in PER UNIT. NOTE: Valid NEG LIMIT values are 0 to 32767.

OUTPUT RATE This input is a ramp time in 100 'ths of a second. The ramp internally limits the slew of the output. This input will effect stability if the ramp is too slow (numerically high value). This input should be 0 except in unusual circumstances. NOTE: Valid OUTPUT RATE values are 0 to 100.

SUMPOINT1 This input is a value to be added onto the output after the PI loop but before the output limit.

SUMPOINT2 This input is a value to be added onto the output after the PI loop but before the output limit.

FEEDBACK This input is the feedback for the PI loop expressed in PER UNIT.

IN LIMIT This logical output is "ON" if the regulator has clamped it's output at either the POS LIMIT or the NEG LIMIT.

OUTPUT This is the output of the PI loop. It is expressed in PER UNIT. The value is comprised of a proportional component, an integral component and the two sum points. This output is clamped by the POS LIMIT and the NEG LIMIT. NOTE: This loop will be satisfied (output will not change) when the reference

Page 54: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 54

is equal to the feedback (same polarity). The output will increase when the reference is greater than the feedback and decrease when the reference is less than the feedback.

Page 55: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 55

Position Reg

This block is designed to act as a position regulator. This block takes a double word position error (which must be calculated externally) which is in terms of pulses from a pulse tach, plots a trajectory and produces a speed reference. The trajectory is determined by accel/decel times and a max speed input.

ENABLE This input being ON will allow the output of this block to be updated based on the remaining inputs. When this input is OFF, the outputs of this block will be zero.

ERR HI This is the signed hi word of the position error.

ERR LO This is the unsigned lo word of the position error.

PPR This input is the resolution of the pulse encoder per revolution.

RPMMAX This input is the speed that the motor and encoder will be rotating at 1 per unit speed, and is expressed in RPM.

MAX SPEED This is the maximum value in perunit that the output will reach. It applies to both forward or reverse.

Page 56: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 56

ACCEL RATE This is the acceleration rate to be used in milliseconds.

DECEL RATE This is the deceleration rate to be used in milliseconds.

S_CURVE PULSES This is the number of pulses left when the output will generate a s_curve deceleration to prevent overshoot. If this number is to high your deceleration will be much longer than you expect. If this number is to low the output will oscillate

TOLERANCE This input determines when IN_POS turns ON.

SPD REF This output is the speed reference which is calculated by the position regulator.

IN_POS This output will turn on when the double word error input is within the number of pulses set by the TOLERANCE input.

Page 57: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 57

Pulse Speed

This block is designed to receive the value of a counter onboard a CA407 or CA412 card. This counter is clocked by a rotary pulse encoder connected to the card. This counter is made available through the TACH COUNT parameter of a CA407 INPUT or a CA412 INPUT block. With this information as well as the PPR of the encoder and the RPM to be considered 1 per unit, this block will calculate a per unit speed feedback signal.

ENABLE This logical input being ON allows the outputs of this block to be updated. When this input is OFF, the outputs of this block will not change value.

CLEAR This logical input being OFF will set the block outputs to zero. When this input is ON, the block will calculate the block outputs.

TACH PORT This input is the value used to calculate the speed feedback signal. This input should come from a TACH COUNT output of a CA407 INPUT block.

TACH PPR This input is the pulses per revolution of the encoder.

RPMMAX This input is the speed in RPM that the encoder will be turning at maximum speed. The SPEED output will be 28000 (1 per unit) when the encoder is rotating at this speed.

PULSES This output is the number of pulses the encoder has generated in the most recent sampling period.

SPEED This output is the calculated speed feedback signal in PER UNIT. The valid range is -32768 to 32767. The value will be 28000 when the pulse tach is turning at RPMMAX.

Page 58: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 58

Pulse Speed2

This block is designed to receive the position information from a resolver through a CA416 card. With this information as well as the number of bits or resolution, the number of revolutions and the motor RPM to be considered 1 per unit, this block will calculate a per unit speed feedback signal.

ENABLE This logical input being ON allows the outputs of this block to be updated. When this input is OFF, the outputs of this block will not change value.

CLEAR This logical input being OFF will set the block outputs to zero. When this input is ON, the block will calculate the block outputs.

POSITION This input is the position feedback signal from a CA412 Card.

NUM OF BITS This input is the number of bits of resolution of the resolver Some common resolutions are 10, 12, 14, or 16 bits (valid inputs are 8 to 16)

NUM OF REVS This input is the number of revolutions before the resolvers starts counting at zero again. For single turn resolvers, this input should be 1. For multi-turn resolvers, this input will be the number of turns

RPMMAX This input is the speed in RPM that the motor will be turning at maximum speed. The SPEED output will be 28000 (1 per unit) when the encoder is rotating at this speed.

PULSES This output is the number of pulses the resolver has generated in the most recent sampling period.

SPEED This output is the calculated speed feedback signal in PER UNIT. The valid

Page 59: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 59

range is -32768 to 32767. The value will be 28000 when the pulse tach is turning at RPMMAX.

Page 60: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 60

Speedloop

This block is designed to act as a speedloop for a motor with an encoder for feedback.

ENABLE This input being ON will allow the output of this block to be updated based on the remaining inputs. When this input is OFF, the outputs of this block will be zero. This input should be ON whenever the current loop is regulating.

PPR This input is the resolution of the pulse encoder per revolution.

RPMMAX This input is the speed that the motor and encoder will be rotating at 1 per

Page 61: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 61

unit speed, and is expressed in RPM. REFERENCE

This input is the reference to the regulator in PER UNIT.

INTEGRAL TIME This input is the integrating time of the regulator and is expressed in MILLISECONDS. The value of this input is the time in milliseconds the regulator will take to increase or decrease the integral component by the value of error. Changing the value of this input is the equivalent to changing the size of the capacitor in an analog speed loop.

GAIN SETTING This input determines the amount of proportional gain used in the loop. A value of 0 will yield no proportional gain. A value of 1000 will yield proportional gain equal to the GAIN RANGE. Changing this setting is equivalent to changing the proportional gain pot setting in an analog speed loop. Note: Valid GAIN SETTING values are 0 to 1000.

GAIN RANGE This input determines the maximum amount of proportional gain possible, Changing this value is the equivalent of changing the value of the proportional gain pot in an analog speed loop

FWD ILIMIT This input is the maximum value of the IREF OUTPUT when it is positive. This input is expressed in PER UNIT. NOTE: Valid FWD ILIMIT values are 0 to 28000.

REV ILIMIT This input is the maximum value of the IREF OUTPUT when it is negative. This input is expressed in PER UNIT. NOTE: Valid REV ILIMIT values are 0 to 28000.

I RATE This input is a ramp time in 100 'ths of a second. The ramp internally limits the slew of the output. This input will effect stability if the ramp is too slow (numerically high value). This input should be 0 except in unusual circumstances. NOTE: Valid I RATE values are 0 to 100.

SUMPOINT1 This input is a value to be added onto the I REF output after the speedloop but before the current limit.

SUMPOINT2 This input is a value to be added onto the I REF output after the speedloop but before the current limit.

SPD FEEDBACK

Page 62: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 62

This input is the speed feedback for the speedloop expressed in PER UNIT as calculated by a PULSE SPD block.

PULSE TRAIN This input is the number of counts from the pulse encoder in the most recent sample as calculated by a PULSE SPD block.

TUNE RESET This input is used to start the self tuning sequence provided that TUNE ENABLE and ENABLE are ON. NOTE: TURNING THIS INPUT ON WILL CAUSE THE MOTOR TO MOVE.

TUNE ENABLE This logical input being ON, disables normal speed regulation and enables the self-tuning mode.

TUNE ADJUST This logical input being ON, will allow the gain and integrating time to be recalculated, based upon new values for RAD RESPONSE and DAMP RATIO, without having to recalculate the inertia. ( ie: The self tuning mechanism assumes that the value of "inertia" is valid )

RAD RESPONSE This input represents the crossover frequency (x10) for the desired closed loop response. This value is used by the self tuning mechanism to determine how responsive the loop should be. Example: desired response = 10.0 radians rad response = 100

DAMP RATIO This input represents the damping ratio (x100) for the closed loop response. 1.00 represents critical damping Example: desired damping ratio = 1.00 ( critical ) damp ratio = 100

TUNED This logical output being ON indicates that the self tuning routine is finished.

INERTIA This output represents the relative inertia. This value is the number of sampling periods it would take to accelerate the load to 1.0 per unit speed ( 0 to 28000 ) at 1.0 per unit torque ( armature current = 28000 ).

FOLLOW ERROR This output is the difference between the internally generated position reference and the accumulated position feedback. Even though position information is used to increase the accuracy of the speed regulation, this is

Page 63: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 63

not a position loop. There is no attempt to bring this output to zero. IN LIMIT

This logical output is "ON" if the regulator has clamped it's output at either the FWD ILIMIT or the REV ILIMIT.

IREF OUTPUT This is the output of the speedloop. It is expressed in PER UNIT. The value is comprised of a proportional component, an integral component and the two sum points. This output is clamped by the FWD ILIMIT and the REV ILIMIT. NOTE: This loop will be satisfied (output will not change) when the reference is equal to the feedback (same polarity). The output will increase when the reference is greater than the feedback and decrease when the reference is less than the feedback.

Page 64: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 64

Tach Loss

This block is designed to check for loss of tach feedback or for tach reversal. Once the block is enabled, if the absolute value of the VOLTAGE FB is greater than the VOLT SETTING, the polarity of the VOLT FB and the TACH FB are compared. If different, and the absolute value of TACH FB is greater than BACKWD SETTING, TACH REVERSAL and TACH LOSS are set. If the block is enabled, and the absolute value of VOLTAGE FB is greater than the VOLT SETTING, TACH FB is compared to TACH SETTING. if TACH FB is less than LOSS SETTING, TACH LOSS is set to ON. NOTE: The TACH LOSS output of this block should always be used to indicate a fault condition. The TACH LOSS output of this block is not latched and will clear when the fault conditions do not exist.

ENABLE This input being ON allows the outputs of this block to be calculated. When this input is OFF the outputs of this block will be OFF.

VOLTAGE FB This input is the armature voltage feedback scaled to per unit

TACH FB This input is the tach or encoder speed feedback scaled to per unit

VOLT SETTING This input is the threshold, expressed in per unit which is compared to the absolute value of VOLT FB

LOSS SETTING This input is the threshold, expressed in per unit which is compared to the absolute value of TACH FB to determine if the tach is present

BACKWD SETTING This input is the threshold, expressed in per unit which is compared to the absolute value of TACH FB to determine if the tach is reversed.

TACH LOSS

Page 65: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 65

This logical output is ON when the block is enabled, and the absolute value of VOLT FB is above VOLT SETTING and the absolute value of the TACH FB is below TACH SETTING. This logical output is also ON when the block is enabled, and the absolute value of VOLT FB is above VOLT SETTING and the absolute value of the TACH FB is above the LOSS SETTING and the TACH FB and the VOLT FB signals are of different polarity

TACH REVERSED This logical output is ON when the block is enabled, and the absolute value of VOLT FB is above VOLT SETTING and the absolute value of the TACH FB is above the LOSS SETTING and the TACH FB and the VOLT FB signals are of different polarity

Page 66: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 66

Equal

This block is designed to compare two numeric inputs and set a logical output if the first is equal to the second.

INPUT 1 This numeric input is the first input of the comparison.

INPUT 2 This numeric input is the second input of the comparison.

ENABLE This input being ON allows the output of this block to be updated. When this input is OFF, the output of this block will not change value.

OUTPUT This logical output will be ON if ENABLE is ON and INPUT 1 is equal to INPUT 2. This logical output will be OFF if ENABLE is ON and INPUT 1 is not equal to INPUT 2. If ENABLE is OFF, OUTPUT will not change states.

Page 67: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 67

Logic AND 2

This block is designed to logically AND two logical inputs and present the result as the output

ENABLE

This input being ON will allow the output of this block to be updated based on the remaining inputs. When this input is OFF, the output of this block will not change states.

INPUT 1 This input is one of the logical inputs to be "ANDed" together to form the output result.

INPUT 2 This input is one of the logical inputs to be "ANDed" together to form the output result.

OUTPUT This output is the result of the "ANDing" of the inputs. If the ENABLE input is ON, the OUTPUT is ON if both inputs are ON. If the ENABLE input is ON, the

Page 68: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 68

OUTPUT is OFF if either input is OFF. If the ENABLE input is OFF, the OUTPUT will not change states.

Page 69: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 69

Logic AND 5

This block is designed to logically AND five logical inputs and present the result as the output

ENABLE This input being ON will allow the output of this block to be updated based on the remaining inputs. When this input is OFF, the output of this block will not change states.

INPUT 1 - INPUT 5 These inputs are the five logical inputs to be "ANDed" together to form the

Page 70: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 70

output result. OUTPUT

This output is the result of the "ANDing" of the inputs. If the ENABLE input is ON, the OUTPUT is ON if all inputs are ON. If the ENABLE input is ON, the OUTPUT is OFF if any inputs are OFF. If the ENABLE input is OFF, the OUTPUT will not change states.

Page 71: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 71

Logic AND 6

This block is designed to logically AND six logical inputs and present the result and the inverse of the result as the outputs. Three of the inputs are normally open and three of the inputs are normally closed.

NORM OPEN 1 This input is one of the normally open logical inputs to be ANDed to form the output result

NORM OPEN 2 This input is one of the normally open logical inputs to be ANDed to form the output result

Page 72: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 72

NORM OPEN 3 This input is one of the normally open logical inputs to be ANDed to form the output result

NORM CLOSED 1 This input is one of the normally closed logical inputs to be ANDed to form the output result

NORM CLOSED 2 This input is one of the normally closed logical inputs to be ANDed to form the output result

NORM CLOSED 3 This input is one of the normally closed logical inputs to be ANDed to form the output result

OUTPUT This output is the result of the "ANDing" of the inputs. If all of the normally open inputs are ON and all of the normally closed inputs are OFF, the OUTPUT will be ON. If any of the normally open inputs are OFF or if any of the normally closed inputs are ON, the OUTPUT will be OFF.

NOT OUTPUT This output is the inverse of OUTPUT.

Page 73: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 73

Logic Invert 1

This block is designed to logically INVERT a logical input and present the result as the output

ENABLE This input being ON will allow the output of this block to be updated based on the remaining input. When this input is OFF, the output of this block will not change states.

INPUT This input is inverted to form the output result.

OUTPUT This output is the inverse of the INPUT If the ENABLE input is ON, the OUTPUT is ON if the input is OFF. If the ENABLE input is ON, the OUTPUT is OFF if the input is ON. If the ENABLE input is OFF, the OUTPUT will not change states.

Page 74: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 74

Logic Invert 16

This block is designed to logically INVERT 16 logical inputs and present the result as 16 logical outputs

Page 75: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 75

INPUT 1 - INPUT 16 These inputs are inverted to form the output results.

OUTPUT 1 - OUTPUT 16 These outputs are the inverse of the inputs The output is ON if the input is OFF. The output is OFF if the input is ON.

Page 76: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 76

Logic Latch

This block is designed to perform a logical latch function.

START This input must be ON to cause the OUTPUT to turn ON.

STOP If this input is OFF, the OUTPUT will be OFF. If this input is ON, the state of the OUTPUT will be determined by the other inputs.

SEAL ON This input, if ON, will cause the OUTPUT to remain ON after START turns OFF if STOP is ON and SEAL OFF is OFF.

SEAL OFF This input, if OFF, will cause the OUTPUT to remain ON after START turns OFF if STOP is ON and SEAL ON is ON.

OUTPUT This is the output of the latch

Page 77: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 77

Logic OR 2

This block is designed to logically OR two logical inputs and present the result as the output

ENABLE This input being ON will allow the output of this block to be updated based on the remaining inputs. When this input is OFF, the output of this block will not change states.

INPUT 1 This input is one of the logical inputs to be "ORed" together to form the output result.

INPUT 2 This input is one of the logical inputs to be"ORed" together to form the output result.

OUTPUT

Page 78: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 78

This output is the result of the "ORing" of the inputs. If the ENABLE input is ON, the OUTPUT is ON if either inputs are ON. If the ENABLE input is ON, the OUTPUT is OFF if both inputs are OFF. If the ENABLE input is OFF, the OUTPUT will not change states.

Page 79: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 79

Logic OR 5

This block is designed to logically OR five logical inputs and present the result as the output

Page 80: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 80

ENABLE This input being ON will allow the output of this block to be updated based on the remaining inputs. When this input is OFF, the output of this block will not change states.

INPUT 1 - INPUT 5 These inputs are the logical inputs to be "ORed" together to form the output result.

OUTPUT This output is the result of the "ORing" of the inputs. If the ENABLE input is ON, the OUTPUT is ON if any inputs are ON. If the ENABLE input is ON, the OUTPUT is OFF if all inputs are OFF. If the ENABLE input is OFF, the OUTPUT will not change states.

Page 81: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 81

Logic OR 6

This block is designed to logically OR six logical inputs and present the result and the inverse of the result as the outputs. Three of the inputs are normally open and three of the inputs are normally closed.

NORM OPEN 1 This input is one of the normally open logical inputs to be ORed to form the output result

Page 82: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 82

NORM OPEN 2 This input is one of the normally open logical inputs to be ORed to form the output result

NORM OPEN 3 This input is one of the normally open logical inputs to be ORed to form the output result

NORM CLOSED 1 This input is one of the normally closed logical inputs to be ORed to form the output result

NORM CLOSED 2 This input is one of the normally closed logical inputs to be ORed to form the output result

NORM CLOSED 3 This input is one of the normally closed logical inputs to be ORed to form the output result

OUTPUT This output is the result of the ORing of the inputs. If any of the normally open inputs are ON or if any of the normally closed inputs are OFF, the OUTPUT will be ON. If all of the normally open inputs are OFF and if all of the normally closed inputs are ON, the OUTPUT will be OFF.

NOT OUTPUT This output is the inverse of OUTPUT.

Page 83: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 83

Logic XOR 2

This block is designed to logically XOR two logical inputs and present the result as the output

ENABLE This input being ON will allow the output of this block to be updated based on the remaining inputs. When this input is OFF, the output of this block will not change states.

INPUT 1 This input is one of the logical inputs to be "XORed" together to form the output result.

INPUT 2 This input is one of the logical inputs to be "XORed" together to form the output result.

OUTPUT This output is the result of the "XORing" of the inputs. If the ENABLE input is ON, the OUTPUT is ON if the inputs are in opposite states. If the ENABLE input is ON, the OUTPUT is OFF if both inputs are in the same state. If the ENABLE input is OFF, the OUTPUT will not change states.

Page 84: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 84

Mask Input

This block is designed to retain specified bits of the INPUT and present them as the OUTPUT with unused bits masked OFF.

INPUT This input is the value which contains the desired information.

LSB This input defines the least significant bit of the input which is to be included in the OUTPUT. NOTE: Valid LSB values are 0 to 15.

# OF BITS This input defines the number of bits which are to be included in the OUTPUT.

OUTPUT This output is the result of the mask operation. Bit zero of this word corresponds to Bit LSB of the input. The first # OF BITS bits of this word are calculated from the INPUT. The remaining bits are ZEROS.

Example: input 10000 LSB 4 # of bits 8 output 113 input 10000 = (2710 hex) output (71 hex) = 113 0010 0111 0001 0000 0000 0000 0111 0001

Page 85: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 85

Toggle

This block is designed to change states of the output based on the OFF to ON transition of the input. The output signal has a frequency one half of the input signal frequency.

ENABLE This input being ON allows the output of this block to be updated. When this input is OFF, the output of this block will be OFF.

INPUT This logical input changing states from OFF to ON will cause the output to change states.

OUTPUT This logical output will change states when ENABLE is ON and the INPUT parameter changes states from OFF to ON. This signal will have a frequency one half of the INPUT signal frequency

Page 86: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 86

ABS Compare

This block is designed to compare the absolute value of an input to a threshold, and control a logical output based upon the comparison

ENABLE This input being ON allows the outputs of this block to be updated. This input being OFF sets the ABSOLUTE OUT to zero, the OUTPUT to OFF and the NOT OUTPUT to ON.

INPUT This is the input whose absolute value is compared to the THRESHOLD.

THRESHOLD This input is the value the absolute value of the input is compared to. NOTE: Valid THRESHOLD values are 0 to 32767

ABSOLUTE OUT This output is the absolute value of the INPUT.

GREATER EQUAL This logical output will be ON when the absolute value of INPUT is greater than or equal to THRESHOLD and ENABLE is ON. This output will be OFF when the absolute value of INPUT is less than THRESHOLD, or when ENABLE is OFF.

LESS THAN This output will be the compliment of GREATER EQUAL

Page 87: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 87

Greater Equal

This block is designed to compare two numeric inputs and set a logical output if the first is greater than or equal to the second.

INPUT 1 This numeric input is the first input of the comparison.

INPUT 2 This numeric input is the second input of the comparison.

ENABLE This input being ON allows the output of this block to be updated. When this input is OFF, the output of this block will not change value.

OUTPUT This logical output will be ON if ENABLE is ON and INPUT 1 is greater than or equal to INPUT 2. This logical output will be OFF if ENABLE is ON and INPUT 1 is less than INPUT 2. If ENABLE is OFF, OUTPUT will not change states.

Page 88: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 88

Greater Than

This block is designed to compare two numeric inputs and set a logical output if the first is greater than the second.

INPUT 1 This numeric input is the first input of the comparison.

INPUT 2 This numeric input is the second input of the comparison.

ENABLE This input being ON allows the output of this block to be updated. When this input is OFF, the output of this block will not change value.

OUTPUT This logical output will be ON if ENABLE is ON and INPUT 1 is greater than INPUT 2. This logical output will be OFF if ENABLE is ON and INPUT 1 is less than or equal to INPUT 2. If ENABLE is OFF, OUTPUT will +not change states.

Page 89: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 89

In Range

This block is designed to set three logical outputs and one numeric output based on a numeric input being within a specified range.

ENABLE This input being ON allows the outputs of this block to be updated. When this input is OFF, the outputs of this block will not change value.

MINIMUM This input is the lower threshold, which the INPUT parameter is compared to.

MAXIMUM This input is the upper threshold, which the INPUT parameter is compared to.

INPUT This input is the numeric value which is compared to the MINIMUM and MAXIMUM thresholds.

ANALOG LOW This input is the value that the ANALOG OUT output is set to if INPUT is less than MINIMUM.

ANALOG MID This input is the value that the ANALOG OUT output is set to if INPUT is greater than or equal to MINIMUM and INPUT is less than or equal to MAXIMUM.

ANALOG HIGH This input is the value that the ANALOG OUT output is set to if INPUT is greater than MAXIMUM.

ANALOG OUT This output will be equal to ANALOG LOW, ANALOG MID, or ANALOG HIGH depending on the values of INPUT, MINIMUM, and MAXIMUM

Page 90: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 90

TOO LOW This logical output will be ON when the INPUT is less than the MINIMUM.

INBOUNDS This logical output will be ON if INPUT is greater than or equal to MINIMUM and INPUT is less than or equal to MAXIMUM.

TOO HIGH This logical output will be ON when the INPUT is greater than the MAXIMUM.

Page 91: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 91

In Range Double

This block is designed to set three logical outputs and one numeric output based on a 32 bit numeric input being within a specified 32 bit range.

ENABLE This input being ON allows the outputs of this block to be updated. When this input is OFF, the outputs of this block will not change value.

MINIMUM HI This input is the hi word of the lower threshold, which the INPUT parameters is compared to.

MINIMUM LO This input is the lo word of the lower threshold, which the INPUT parameters is compared to.

MAXIMUM HI This input is the hi word of the upper threshold, which the INPUT parameters is compared to.

MAXIMUM LO This input is the lo word of the upper threshold, which the INPUT parameters is compared to.

INPUT HI This input is the hi word of the numeric value which is compared to the MINIMUM and MAXIMUM thresholds.

INPUT LO

Page 92: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 92

This input is the lo word of the numeric value which is compared to the MINIMUM and MAXIMUM thresholds.

ANALOG LOW This input is the value that the ANALOG OUT output is set to if INPUT is less than MINIMUM.

ANALOG MID This input is the value that the ANALOG OUT output is set to if INPUT is greater than or equal to MINIMUM and INPUT is less than or equal to MAXIMUM.

ANALOG HIGH This input is the value that the ANALOG OUT output is set to if INPUT is greater than MAXIMUM.

ANALOG OUT This output will be equal to ANALOG LOW, ANALOG MID, or ANALOG HIGH depending on the values of INPUT, MINIMUM, and MAXIMUM

TOO LOW This logical output will be ON when the INPUT is less than the MINIMUM.

INBOUNDS This logical output will be ON if INPUT is greater than or equal to MINIMUM and INPUT is less than or equal to MAXIMUM.

TOO HIGH This logical output will be ON when the INPUT is greater than the MAXIMUM.

Page 93: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 93

Less Than

This block is designed to compare two numeric inputs and set a logical output if the first is less than the second.

INPUT 1 This numeric input is the first input of the comparison.

INPUT 2 This numeric input is the second input of the comparison.

ENABLE This input being ON allows the output of this block to be updated. When this input is OFF, the output of this block will not change value.

OUTPUT This logical output will be ON if ENABLE is ON and INPUT 1 is less than INPUT 2. This logical output will be OFF if ENABLE is ON and INPUT 1 is greater than or equal to INPUT 2. If ENABLE is OFF, OUTPUT will not change states.

Page 94: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 94

Less Equal

This block is designed to compare two numeric inputs and set a logical output if the first is less than or equal to the second.

INPUT 1 This numeric input is the first input of the comparison.

INPUT 2 This numeric input is the second input of the comparison.

ENABLE This input being ON allows the output of this block to be updated. When this input is OFF, the output of this block will not change value.

OUTPUT This logical output will be ON if ENABLE is ON and INPUT 1 is less than or equal to INPUT 2. This logical output will be OFF if ENABLE is ON and INPUT 1 is greater than INPUT 2. If ENABLE is OFF, OUTPUT will not change states.

Page 95: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 95

Delay

This block is designed to create a logical output which follows an input with a delay on one transition and no delay on the other. The transition to be delayed is selectable.

ENABLE This logical input clears the outputs of this block when OFF. When ON, this input allows the block outputs to be updated based on the remaining inputs.

DELAY ON/OFF This logical input determines which transition is delayed. When ON, a transition from OFF to ON is delayed. When OFF, a transition from ON to OFF is delayed.

INPUT This is the logical input to be delayed.

DELAY This numeric input is the delay time for the selected transition. The time units is specified by the MULTIPLIER parameter. NOTE: Valid DELAY values are 0 to 28000

MULTIPLIER This parameter determines the time units for the DELAY parameter MULTIPLIER time units 1 10 'ths of second 10 seconds NOTE: Valid MULTIPLIER values are 1 to 300

OUTPUT This logic output follows the input by the specified delay time on the specified transition.

COUNT This numeric output is a counter which is set to the DELAY parameter when

Page 96: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 96

the input changes to the state to be delayed and counts down to zero, when the output changes state. Example: ENABLE ON DELAY ON/OFF ON INPUT "REGULATOR ENABLE" DELAY 50 MULTIPLIER 1 When the logical variable "REGULATOR ENABLE" turns off, the output will turn off immediately. When "REGULATOR ENABLE" turns ON, the output will turn ON 5.0 seconds later ( 50 x 1 10'ths of second ).

Page 97: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 97

One Shot

This block is designed to cause an OUTPUT to turn ON, stay ON for a pre-defined time and then shut OFF. The oneshot can be triggered by an OFF-to-ON transition or an ON-to-OFF transition. The inverse of the logical output is also available.

ENABLE This input being ON will allow the one shot to be triggered. When this input is OFF, OUTPUT is OFF, and NOT OUTPUT is ON.

ON INPUT The one-shot is triggered if the block is enabled and there is an OFF-to-ON transition of the ON INPUT. The one-shot may be retriggered.

OFF INPUT The one-shot is triggered if the block is enabled and there is an ON-to-OFF transition of the OFF INPUT. The one-shot may be retriggered.

DELAY TIME This input is the time in tenths of a second for the one-shot to be ON after it is triggered. MAXIMUM VALUE for DELAY TIME is 320

OUTPUT This logical output will be ON for a period specified by DELAY TIME after the one-shot is triggered. This logical output will be OFF otherwise.

NOT OUTPUT This logical output is the inverse of OUTPUT.

Page 98: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 98

One Shot2

This block is designed to cause an OUTPUT to turn ON, stay ON for a pre-defined time and then shut OFF. The oneshot can be triggered by an OFF-to-ON transition or an ON-to-OFF transition. The inverse of the logical output is also available.

ENABLE This input being ON will allow the one shot to be triggered. When this input is OFF, OUTPUT is OFF, and NOT OUTPUT is ON.

ON INPUT The one-shot is triggered if the block is enabled and there is an OFF-to-ON transition of the ON INPUT. The one-shot may be retriggered.

OFF INPUT The one-shot is triggered if the block is enabled and there is an ON-to-OFF transition of the OFF INPUT. The one-shot may be retriggered.

DELAY TIME This input is the time in milliseconds for the one-shot to be ON after it is triggered. *Note: the delay time must be longer than the sample time set in the sys config block. If not the output will be active for one scan only.

OUTPUT This logical output will be ON for a period specified by DELAY TIME after the one-shot is triggered. This logical output will be OFF otherwise.

NOT OUTPUT This logical output is the inverse of OUTPUT.

Page 99: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 99

Square

This block is designed to generate a variable duty cycle square wave. The block has a logical output which turns ON and OFF and a numeric output which switches between two preset values.

ENABLE This input being ON allows the output of this block to be updated. When this input is OFF, ANALOG OUT will be set to zero, COUNT OUT will be set to zero, and, LOGIC OUT will be OFF.

TIME LOW This input determines the time that the LOGIC OUT is OFF and that ANALOG OUT is equal to AN OUT LO. The TIME UNITS parameter determines the units for this time. NOTE: Valid range is 1 to 28000

TIME HIGH This input determines the time that the LOGIC OUT is ON and that ANALOG OUT is equal to AN OUT HI. The TIME UNITS parameter determines the units for this time. NOTE: Valid range is 1 to 28000

AN OUT LO This numeric input is the value that ANALOG OUT is set to when LOGIC OUT is OFF.

AN OUT HI This numeric input is the value that ANALOG OUT is set to when LOGIC OUT is ON.

TIME UNITS This numeric input defines the units for the time periods. If equal to 1, TIME LOW and TIME HIGH are in tenths of a second. If equal to 10, TIME LOW and TIME HIGH are in seconds. NOTE: Valid range is 1 to 300

Page 100: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 100

LOGIC OUT This logic output will be ON for the time defined by TIME HIGH and TIME UNITS. This logic output will be OFF for the time defined by TIME LOW and TIME UNITS.

ANALOG OUT This numeric output will be equal to ANALOG LO when LOGIC OUT is OFF. This numeric output will be equal to ANALOG HI when LOGIC OUT is ON.

COUNT OUT This numeric output is a counter which is loaded with either TIME LOW or TIME HIGH and counts down to zero before being reset.

Page 101: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 101

PU Delay

This block is designed to create a logical output which is active for a set amount of time after the SAFphire is powered up or a download is performed.

DELAY

This numeric input is the delay time after power up that the output goes OFF. The time units is specified by the DELAY UNITS parameter. NOTE: Valid DELAY values are 0 to 28000

DELAY UNITS This parameter determines the time units for the DELAY parameter 1 = 10 'ths of a second 10 = seconds NOTE: Valid MULTIPLIER values are 1 to 300

OUTPUT This logic output turns ON for the specified amount of time after a power up or a download, and then remains OFF.

NOT OUTPUT This logic output turns OFF for the specified amount of time after a power up or a download, and then remains ON.

Page 102: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 102

Transport Delay

This block performs a transport delay on an numeric input. The function implemented by this block is described by the following equation:

where t is the current time, and T represents the total time delay (see below).

ENABLE

This input being ON allows the output of this block to be updated. This input being OFF sets the OUTPUT and all internally stored previous samples to zero.

PRESET ON

This logical input being ON while the block is enabled, will set the output and the internally stored previous samples to the PRESET VALUE. This logical input being OFF while the block is enabled, will allow the output to calculated based on the remaining inputs.

PRESET OFF

This logical input being OFF while the block is enabled, will set the output and the internally stored previous samples to the PRESET VALUE. This logical input being ON while the block is enabled, will allow the output to calculated based on the remaining inputs.

PRESET VALUE

This input is the value the output and the internally stored previous samples are set to when preset by either PRESET ON or PRESET OFF.

INPUT

This input is the numeric signal to be time-delayed. # OF POINTS

This input is the number of previous samples of the INPUT to be internally

Page 103: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 103

stored. NOTE: Valid # OF POINTS values are 2 to 100.

SAMPLE RATE

This input is the length of time in milliseconds between consecutive time samples of the INPUT signal. NOTE: Valid SAMPLE RATE values are multiples of SAMPLE TIME (as set by a SYS CONFIG block), up to a value of 32767. The total time delay in milliseconds is defined by the product T=(# OF POINTS)X(SAMPLE RATE).

OUTPUT

This output is the INPUT delayed by the time T.

Page 104: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 104

Counter

This block is designed to count up or down based on the transition of a logical input. The direction of counting is based on a logical input. The output count is given in a high word and low word format. The maximum size of the low output is also specified. This block can also be preset to specified values

ENABLE This input being ON allows the outputs of this block to be updated. When this input is OFF, the outputs of this block will not change value.

PRESET This input will preset the outputs of the this block to the value specified by the PRESET VALUE inputs. When this input is OFF the outputs are updated based on the remaining inputs.

PRESET VALUE LO This input is the value the COUNT LO output is set to when PRESET is ON. NOTE: Valid PRESET VALUE LO values are 0 to 32767.

PRESET VALUE HI This input is the value the COUNT HI output is set to when PRESET is ON. This input is treated as an signed number. NOTE: Valid PRESET VALUE HI values are 0 to 32767.

COUNT This input changing from OFF to ON, while ENABLE is ON and PRESET is OFF, will cause the COUNT LO output to increment or decrement depending upon the DIRECTION input.

DIRECTION This input determines whether this block counts up or counts down. If this

Page 105: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 105

input is ON, the block will count up. If this input is OFF, the block will count down.

BOUNDARY If DIRECTION is ON, this input sets the value at which COUNT LO is reset to zero and COUNT HI is incremented If DIRECTION is OFF, and COUNT LO is decremented past zero, COUNT HI is decremented and COUNT LO is set to (BOUNDARY -1) NOTE: Valid BOUNDARY values are 1 to 32767.

COUNT LO This output is the lower word of the output count. The value of COUNT LO will be from 0 to (boundary-1)

COUNT HI This output is the upper portion of the output count. It is incremented when COUNT LO is equal to or exceeds the BOUNDARY. This input is decremented when COUNT LO goes negative.

COUNT AT ZERO This output will be ON if COUNT LO and COUNT HI are equal to zero.

Page 106: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 106

Down Counter

This block is designed to count down from a preset value to zero based on the OFF to ON transition of a logical input.

ENABLE This input being ON allows the outputs of this block to be updated. When this input is OFF, the outputs of this block will not change value.

PRESET This input being ON,and ENABLE being ON will cause the COUNTER to be set to the PRESET COUNT. When OFF, the COUNTER is allowed to change.

DECREMENT The counter will be decremented by one on the OFF to ON transition of this input.

PRESET COUNT The counter will be preset with this value when PRESET is ON and ENABLE is ON.

COUNT OUT This output is the counter value. It will decrement by one on the rising edge of the DECREMENT parameter.

NOT AT ZERO This output will be ON when the counter is counting down from the PRESET COUNT. This output will be OFF when the counter has reached zero and has not since been PRESET

Page 107: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 107

Length Count

This block is designed to count pulses from a pulse encoder and decrement a 32 bit count formed by two 16 bit numeric inputs. When the count reaches zero, the count is reset to the given 32 bit count and a logical output is turned ON. There is also the ability to preset the count to a different 32 bit count. Initially the internal length counter is set to 0, but, ZERO REACHED does not turn ON.

ENABLE This input being ON will allow the output of this block to be updated based on the remaining inputs. When this input is OFF, the output of this block will be OFF and the internal length counter will be set to zero.

PRESET HI When the preset input is ON, the value of this input is loaded into the high portion of the internal length counter. NOTE: Valid PRESET HI values are 0 to 32767.

PRESET LO When the preset input is ON, the value of this input is loaded into the low portion of the internal length counter. This input is treated internally as an unsigned number ( 40000 = -25536).

PRESET When this input is ON, the internal 32 bit length counter is set to the preset values above.

LENGTH HI This input is loaded into the high portion of the internal length counter when the 32 bit count is decremented past zero.

LENGTH LO This input is loaded into the low portion of the internal length counter when the

Page 108: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 108

32 bit count is decremented past zero. This input is treated internally as an unsigned number ( 40000 = -25536 )

DECREMENT VALUE This input is a signed value which is subtracted from the internal length counter each sampling period. A PULSE SPEED block will output the number of pulses from the pulse encoder in the most recent sampling period.

ZERO REACHED This output turns ON when the internal length counter reaches or decrements through zero. Because the length inputs are immediately added to the internal length counter, this output will only be ON for one sample normally.

OUT LEN HI This output is the high word of the internal length counter

OUT LEN LO This output is the lo word of the internal length counter. This is a unsigned number.

Page 109: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 109

Up Counter

This block is designed to add a specified value to the output once every sample time. The counter consists of a high and low output. When the low counter reaches a specified boundary, it is reset to zero and the high counter is incremented.

ENABLE This input being ON allows the outputs of this block to be updated. When this input is OFF, the outputs of this block will not change value.

RESET This input will reset the outputs of the this block to zero when OFF if the block is enabled. When this input is ON the outputs are updated based on the remaining inputs.

INCREMENT This input is the value that is added to the output count every sample time. Note: Valid INCREMENT values are 1 to 32767

BOUNDARY This input sets the value at which COUNT LO is reset and COUNT HI is incremented.

COUNT LO This output is the lower word of the output count. Its range will be from 0 to (boundary-1)

COUNT HI This output is the upper word of the output count. It is incremented when COUNT LO is equal to or exceeds the BOUNDARY.

Page 110: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 110

Up Counter5

This block is designed to add a specified value to the output once every sample time. The counter consists of a 5 word outputs. When the first output reaches a specified boundary, it is reset to zero and the next counter is incremented.

ENABLE This input being ON allows the outputs of this block to be updated. When this input is OFF, the outputs of this block will not change value.

RESET This input will reset the outputs of the this block to zero when OFF if the block is enabled. When this input is ON the outputs are updated based on the remaining inputs.

INCREMENT This input is the value that is added to the output count every sample time. NOTE: Valid INCREMENT values are 1 to 32767

BOUNDARY 1 This input sets the value at which COUNT 1 is reset and COUNT 2 is incremented.

BOUNDARY 2 This input sets the value at which COUNT 2 is reset and COUNT 3 is incremented.

BOUNDARY 3 This input sets the value at which COUNT 3 is reset and COUNT 4 is incremented.

BOUNDARY 4 This input sets the value at which COUNT 4 is reset and COUNT 5 is incremented.

Page 111: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 111

COUNT 1 This output is the first word of the output count. Its range will be from 0 to (boundary 1-1)

COUNT 2 This output is the second word of the output count. Its range will be from 0 to (boundary 2-1)

COUNT 3 This output is the third word of the output count. Its range will be from 0 to (boundary 3-1)

COUNT 4 This output is the fourth word of the output count. Its range will be from 0 to (boundary 4-1)

COUNT 5 This output is the fifth word of the output count.

Page 112: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 112

BCD to Binary

This block is designed to accept a 16 bit BCD input from a thumb wheel or other BCD device and convert this input to the decimal value it represents. The input value is treated as unsigned. The valid output range is 0 to 9999.

ENABLE This input being ON allows the outputs of this block to be updated. When this input is OFF, the outputs of this block will not change value.

INPUT This is the 16 bit, 4 digit BCD input which is to be converted.

OUTPUT This output is the value the BCD input represents. The valid range of the output is 0 to 9999.

Example input output 18 0000 0000 0001 0010 12 BCD Binary decimal input output -26215 1001 1001 1001 1001 9999 BCD Binary decimal

Page 113: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 113

Binary To BCD

This block is designed to convert a 16 bit binary input to BCD output for use in driving a BCD display or other device. The valid input range is 0 to 9999.

ENABLE This input being ON allows the outputs of this block to be updated. When this input is OFF, the outputs of this block will not change value.

INPUT This is the 16 bit, binary input which is to be converted.

OUTPUT This output is the BCD value of the input.

Example input output 12 0000 0000 0001 0010 18 decimal Binary BCD input output 9999 1001 1001 1001 1001 -26215 decimal Binary BCD

Page 114: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 114

LogictoWord

This block is designed to convert 16 logical inputs to a 16 bit numeric output.

ENABLE This input being ON allows the output of this block to be updated. When this input is OFF, the output of this block will not change value.

LOGIC IN 0 - LOGIC IN 15 These are the 16 logical inputs that make up WORD OUTPUT.

WORD OUTPUT This output is the value with 1 bit generated per logic input. LOGIC IN 0 corresponds to the LSB. LOGIC IN 15 corresponds to the MSB. For each logic input that is ON, the corresponding bit is set to a 1.

Page 115: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 115

Per Unit

This block is designed to convert an input value which is in engineering units to a per unit value.

ENABLE This input being ON allows the output of this block to be updated. When this input is OFF, the output of this block will not change value.

INPUT This is the input, in engineering units, that is to be converted to a per unit value.

PER UNIT VALUE This is the value that the INPUT must be to generate an OUTPUT equal to 28000 NOTE: Valid values for this input are 1 to 32767

OUTPUT This output is the INPUT expressed in per unit. The value will be clamped at +32767 or -32768, and equal to 28000 when the INPUT is equal to VAL FOR 1 PU.

Examples: ENABLE = ON INPUT = 50 VAL FOR 1 PU = 100 OUTPUT = 14000 ENABLE = ON INPUT = -50 VAL FOR 1 PU = 100 OUTPUT = -14000 ENABLE = ON INPUT = 50 VAL FOR 1 PU = 5000 OUTPUT = 280

Page 116: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 116

ENABLE = ON INPUT = 2000 VAL FOR 1 PU = 1000 OUTPUT = 32767

Page 117: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 117

Scaler

This block is designed to scale an input. The input is multiplied by a factor defined by NUMERATOR and DENOMINATOR.

ENABLE This input being ON will allow the output of this block to be updated based on the remaining inputs. When this input is OFF, the output of this block will not change states.

DENOMINATOR This input is the denominator of the constant that is to be multiplied by the INPUT.

NUMERATOR This input is the numerator of the constant that is to be multiplied by the INPUT.

INPUT This input is the value to be multiplied by the specified constant.

SCALED OUTPUT This output is the result of multiplication.

Page 118: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 118

WordtoLogic

This block is designed to convert a 16 bit numeric input to 16 logical outputs.

ENABLE This input being ON allows the output of this block to be updated. When this input is OFF, the output of this block will not change value.

WORD INPUT This input is the value containing 1 bit per logic output. The LSB corresponds to LOGIC OUT 0. The MSB corresponds to LOGIC OUT 15. For each bit that is a 1, the corresponding logic output is set to ON.

LOGIC OUT 0 - LOGIC OUT 15 These are the 16 logical outputs that are generated from WORD.

Page 119: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 119

CA401 Input

This block is designed to update the INPUT WORD representing the status of the 16 digital inputs from the CA401 Digital I/P Card.

CARD ADDRESS This is the address of the CA401 card as set by the switches of SB1 located on the CA401 card. For information on the setting of these switches, see the CA401 board description. Valid CARD ADDRESS values are 0 to 15

INPUT WORD This output indicates the status of the 16 digital inputs from the CA401 card. Each input is stored as a bit in the INPUT WORD. Bit 0 will be a 1 when Input 1 is ON, bit 1 will be a 1 when Input 2 is ON, bit 2 will be a 1 when Input 3 is ON, etc. The INPUT WORD can be converted to 16 logical values (one per card input) by using a WORD to LOGIC block.

Page 120: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 120

CA402 Output

This block is designed to update the status of the outputs of the CA402 Digital O/P Card based on the input of this block.

CARD ADDRESS This is the address of the CA402 card as set by the switches of SB1 located on the CA402 card. For information on the setting of these switches, see the CA402 board description. Valid CARD ADDRESS values are 0 to 15

OUTPUT WORD This input controls the status of the 16 digital outputs of the CA402 card. Each output is controlled by a bit in the INPUT WORD. Bit 0 will be a 1 to turn output 1 ON, bit 1 will be a 1 to turn Output 2 ON, etc. The OUTPUT WORD can be converted from 16 logical values by using a LOGIC TO WORD block.

Page 121: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 121

CA403 Input

This block is designed to present the status of the inputs of the CA403 Multiple Input / Output Card as outputs of this block.

CARD ADDRESS This is the address of the CA403 card as set by the switches of SB3 located on the CA403 card. For information on the setting of these switches, see the CA403 board description. Valid CARD ADDRESS values are 0 to 15

LOGIC INP B2 This output indicates the status of the LOGIC INP B2 logical input.

LOGIC INP B1 This output indicates the status of the LOGIC INP B1 logical input.

LOGIC INP A2 This output indicates the status of the LOGIC INP A2 logical input.

LOGIC INP A1 This output indicates the status of the LOGIC INP A1 logical input. All analog inputs are scaled such that its numeric representation will be 28000 when the input is +10 Volts, -28000 when the input is -10 Volts and 0 when the input is 0 Volts

ANALOG INP 1 This output is the numeric representation of the analog input ANALOG INP 1.

ANALOG INP 2 This output is the numeric representation of the analog input ANALOG INP 2.

ANALOG INP 3 This output is the numeric representation of the analog input ANALOG INP 3.

Page 122: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 122

*Note: When using a CA403 card there must always be one input and output block for each card.

Page 123: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 123

CA403 Output

This block is designed to update the status of the outputs of the CA403 Multiple Input / Output Card based on the inputs of this block.

CARD ADDRESS This is the address of the CA403 card as set by the switches of SB3 located on the CA403 card. For information on the setting of these switches, see the CA403 board description. Valid CARD ADDRESS values are 0 to 15

LOGIC OUT 2 This input determines the status of the LOGIC OUT 2 logical output.

LOGIC OUT 1 This input determines the status of the LOGIC OUT 1 logical output. All analog outputs are scaled such that the output voltage will be +10 Volts when its numeric block input is 28000, the output voltage will be -10 Volts when its numeric block input is -28000, and the output voltage will be 0 Volts when its numeric input is 0.

ANALOG OUT 1 This input is the numeric representation of the analog output ANALOG OUT 1.

ANALOG OUT 2 This input is the numeric representation of the analog output ANALOG OUT 2. *Note: When using a CA403 card there must always be one input and output block for each card.

Page 124: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 124

CA404 Output

This block is designed to update the outputs of the CA404 Analog Output Card based on the inputs of this block.

CARD ADDRESS This is the address of the CA404 card as set by the switches of SB1 located on the CA404 card. For information on the setting of these switches, see the CA404 board description. Valid CARD ADDRESS values are 0 to 15 All analog outputs are scaled such that the output voltage will be +10 Volts when its numeric block input is 28000, the output voltage will be -10 Volts when its numeric block input is -28000, and the output voltage will be 0 Volts when its numeric input is 0.

ANALOG OUT 1 This is the numeric input for the analog output ANALOG OUT 1.

ANALOG OUT 2 This is the numeric input for the analog output ANALOG OUT 2.

ANALOG OUT 3 This is the numeric input for the analog output ANALOG OUT 3.

ANALOG OUT 4 This is the numeric input for the analog output ANALOG OUT 4. .

Page 125: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 125

CA407 Input

This block is designed to present the status of the inputs of the CA407 Drive Interface / Encoder Card as outputs of this block.

DRIVE NUMBER This is the address of the CA407 card as set by the switches of SB3 located on the CA407 card. For information on the setting of these switches, see the CA407 board description. Valid CARD ADDRESS values are 0 to 31

QUADRATURE TACH This input indicates whether the pulse encoder being used is quadrature or single channel. Single channel encoder QUADRATURE TACH = OFF quadrature encoder QUADRATURE TACH = ON The following outputs are only valid when used with a DD312 or DD306 drive.

Page 126: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 126

CURRENT FB This output is the numeric representation of the analog current feedback signal from the DD312 drive. CURRENT FB = 28000 = rated current fb NOTE: rated current is determined by the burden resistor installed on the DD312 drive.

VOLTAGE FB This output is the numeric representation of the analog voltage feedback signal from the DD312 drive. VOLTAGE FB = 28000 = rated voltage fb NOTE: rated voltage is determined by the voltage feedback resistors installed on the DD312 drive.

SYNC LOSS This output will be ON to indicate that the DD312 drive has tripped on a mains synchronization loss fault.

THERMAL O/L This output will be ON to indicate that the DD312 drive has tripped on an inverse time electronic motor overload fault.

INST OVRCURRENT This output will be ON to indicate that the DD312 drive has tripped on an instantaneous over current fault.

HEATSINK O/T This output will be ON to indicate that the DD312 drive has tripped on a heatsink over temperature fault.

FAULTED This output will be ON to indicate that the DD312 has tripped on any fault condition.

OVER VOLTAGE This output will be ON to indicate that the DD312 has tripped on an armature over voltage fault.

PHASE LOSS This output will be ON to indicate that the DD312 has tripped on a mains phase loss fault.

ESTOP This output represents the status of the ESTOP input on the DD312 drive. It being ON indicates normal safe operating conditions.

REVERSE This output represents the status of the REVERSE input on the DD312 drive.

JOG This output represents the status of the JOG input on the DD312 drive.

RUN This output represents the status of the RUN input on the DD312 drive.

Page 127: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 127

REG ENABLE This output will be ON to indicate that no drive faults are active, that the auxiliary contactor input of the DD312 is energized, and that the current regulator of the DD312 is regulating.

TACH COUNT This output is a counter incremented or decremented based on direction (quadrature encoder only) on every edge of the pulse encoder inputs. Because quadrature edges are counted, one encoder revolution will increment or decrement this value by four times the encoder ppr.

MARKER COUNT This output will be the latched value of TACH COUNT when the MARKER INPUT is ON.

MARKER This output will be ON when the marker channel input of the CA407 is active.

Page 128: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 128

CA407 Output

This block is designed to update the status of the outputs of the CA407 Drive Interface / Encoder Card based on the inputs of this block.

DRIVE NUMBER This is the address of the CA407 card as set by the switches of SB3 located on the CA407 card. For information on the setting of these switches, see the CA407 board description. Valid CARD ADDRESS values are 0 to 31 The following 6 inputs are only used used with a DD312 or DD306 drive.

DRIVE ENABLE This input is used to enable communication with the DD312 drive. It must be ON for operation using the drive interface. If it is OFF, the DD312 will trip, the WATCHDOG LED on the DD312 drive will not flash, and the SAF BUS STATUS LED of the CA407 will not flash.

EXTERNAL FLT This input is used to trip the DD312 due to a SAFphire detected fault. This input will be OFF to indicate no active faults.

FEEDBACK LOSS This input is used to trip the DD312 due to a feedback loss fault as detected by SAFphire.

Page 129: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 129

VOLTAGE RELAY This input is used to cause the DD312 to continue regulating until zero speed is reached after the run command has been removed. The DD312 will continue to regulate after the run command is removed as long as this input is ON. This input turning ON will not cause the DD312 to start regulating if it isn't already.

SOFTWARE RUN This input is used to cause the DD312 to regulate when ON. This input can be used instead of the 120 VAC sequencing logic inputs on the DD312. If this input is used, the RUN,and STOP inputs of the DD312 must not be used. This input must be a maintained signal.

FAULT RESET This input is used to reset the DD312 drive after a fault occurs. This input should be OFF for normal operation. Faults are reset on the ON to OFF transition of the input.

QUADRATURE TACH This input indicates whether the pulse encoder being used is quadrature or single channel. single channel encoder QUADRATURE TACH = OFF quadrature encoder QUADRATURE TACH = ON

EITHER EDGE This input allows the marker capture circuitry to latch the encoder input counter on both transitions of the marker pulse if ON.

MARKER EDGE This input determines which transition of the marker pulse latches the encoder input counter if EITHER EDGE is not enabled. If ON, the OFF to ON transition of the marker pulse latches the encoder input counter. If OFF, the OFF to ON transition of the marker pulse latches the encoder input counter.

MARKER ENABLE This input allows the marker capture circuitry to function. If OFF the marker capture circuitry is disabled. If ON the value of the encoder input counter will be latched on the edge/edges of the marker pulse as determined by the EITHER EDGE and MARKER EDGE parameter.

CURRENT REF This input is the numeric representation of the analog output made available on the terminals of the CA407 and sent to the DD312 drive as an analog current reference signal. If used as a current reference to a DD312 drive, the actual current regulated will depend on the burden resistor installed in the actual drive. A value of 28000 would cause rated current to be regulated.

Page 130: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 130

CA412 Input

This block is designed to present the status of the inputs of the CA412 Multiple Encoder Card as outputs of this block.

DRIVE NUMBER This is the address of the CA412 card as set by the switches of SB3 located on the CA412 card. For information on the setting of these switches, see the CA412 - Multiple Encoder Card board description. Valid DRIVE NUMBER values are 0-15

QUADRATURE 1 This input indicates whether the pulse encoder being used for TACH 1 is quadrature or single channel. single channel encoder: QUADRATURE TACH = OFF quadrature encoder: QUADRATURE TACH = ON

QUADRATURE 2 This input indicates whether the pulse encoder being used for TACH 2 is quadrature or single channel. single channel encoder: QUADRATURE TACH = OFF quadrature encoder: QUADRATURE TACH = ON

QUADRATURE 3 This input indicates whether the pulse encoder being used for TACH 3 is quadrature or single channel. single channel encoder: QUADRATURE TACH = OFF quadrature encoder: QUADRATURE TACH = ON

TACH COUNT 1 This output is a counter incremented or decremented based on direction (quadrature encoder only) on every edge of the TACH 1 pulse encoder inputs. Because quadrature edges are counted, one encoder revolution will increment or decrement this output by four times the encoder ppr.

TACH COUNT 2 This output is a counter incremented or decremented based on direction (quadrature encoder only) on every edge of the TACH 2 pulse encoder inputs. Because quadrature edges are counted, one encoder revolution will

Page 131: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 131

increment or decrement this output by four times the encoder ppr. TACH COUNT 3

This output is a counter incremented or decremented based on direction (quadrature encoder only) on every edge of the TACH 3 pulse encoder inputs. Because quadrature edges are counted, one encoder revolution will increment or decrement this output by four times the encoder ppr.

MARKER COUNT This output will be set equal to TACH COUNT 1 when the MARKER INPUT is ON. MARKER This output will be ON when the marker channel input of the CA412 is active.

Page 132: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 132

CA412 Output

This block is designed to update the status of the outputs of the CA412 Multiple Encoder Card based on the inputs of this block.

DRIVE NUMBER This is the address of the CA412 card as set by the switches of SB3 located on the CA412 card. For information on the setting of these switches, see the CA412 - Multiple Encoder Card board description. Valid DRIVE NUMBER values are 0-15

QUADRATURE 1 This input indicates whether the pulse encoder being used for TACH 1 is quadrature or single channel. Single channel encoder: QUADRATURE TACH = OFF quadrature encoder: QUADRATURE TACH = ON

EITHER EDGE This input allows the marker capture circuitry to latch the encoder input counter on both transitions of the marker pulse if ON.

MARKER EDGE This input determines which transition of the marker pulse latches the encoder input counter if EITHER EDGE is not enabled. If ON, the OFF to ON transition of the marker pulse latches the encoder input counter. If OFF, the OFF to ON transition of the marker pulse latches the encoder input counter.

MARKER ENABLE This input allows the marker capture circuitry to function. If OFF the marker capture circuitry is disabled. If ON the value of the encoder input counter will

Page 133: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 133

be latched on the edge/edges of the marker pulse as determined by the EITHER EDGE and MARKER EDGE parameter.

CURRENT REF 1 This input is the numeric representation of the first analog output made available on the terminals of the CA412. A value of 28000 would give a 10 volt output.

QUADRATURE 2 This input indicates whether the pulse encoder being used for TACH 2 is quadrature or single channel. Single channel encoder: QUADRATURE TACH = OFF quadrature encoder: QUADRATURE TACH = ON

CURRENT REF 2 This input is the numeric representation of the second analog output made available on the terminals of the CA412. A value of 28000 would give a 10 volt output.

QUADRATURE 3 This input indicates whether the pulse encoder being used for TACH 3 is quadrature or single channel. single channel encoder: QUADRATURE TACH = OFF quadrature encoder: QUADRATURE TACH = ON

CURRENT REF 3 This input is the numeric representation of the third analog output made available on the terminals of the CA412. A value of 28000 would give a 10 volt output.

Page 134: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 134

CA413 D2D Rx

This block is designed to read two words from a D2D device connected to a CA413D D2D Interface Card. Supported Buad Rate is 500K baud.

ADDRESS

This is the address of the CA413 card as set by the rotary switch SW1 located on the CA413 card. For information on the setting of this switch, see the CA413 board description. Valid CARD ADDRESS values are 0 to 15.

CHANNEL

This input will determine which one of the four channels on the CA413 card you are using. Valid inputs are 1-4.

TX NODE

This input is the node number of the connected device that is going to transmit the data. Valid node numbers are 1-64.

TIMEOUT

This input is the timeout in milliseconds for consecutive receive messages . If data is not received from the specified device in the time specified by TIMEOUT, the corresponding ONLINE bit in the CA413 D2D STATS block will be cleared.

WORD1

This input is the first word of data received from the specified device. WORD2

This input is the second word of data received from the specified device. NOTE: Whenever the ADDRESS, CHANNEL, or NODE inputs are changed a forced download must be performed.

Page 135: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 135

CA413 D2D Status

This block is designed to read status information from a CA413D D2D Interface.

ADDRESS

This is the address of the CA413 card as set by the rotary switch SW1 located on the CA413 card. For information on the setting of this switch, see the CA413 board description. Valid CARD ADDRESS values are 0 to 15.

CHANNEL

This input will determine which one of the four channels on the CA413 card you are using. Valid inputs are 1-4.

Page 136: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 136

CLEAR

This input is used to clear the counter outputs of this block. ON will clear all the counter outputs of this block to zero, OFF will allow them to be updated normally.

RX COUNT

This output counts the number of messages received from other D2D nodes.

RX TIME

This output is the time in milliseconds between consecutive messages received from other D2D nodes.

TX COUNT

This output counts the number of messages transmitted to other D2D nodes. TX TIME

This output is the time in milliseconds between transmissions of consecutive messages from the specified channel of the CA413D card.

ONLINE 1-16

This output indicates which nodes (other than this channel) are present and transmitting data on the network. Each bit of the output word indicates the status of one Node. Bit 0 (LSB) will be ON when Node 1 is present, Bit 15 (MSB) will be ON when Node 16 is present.

ONLINE 17-32

This output indicates which nodes (other than this channel) are present and transmitting data on the network. Each bit of the output word indicates the status of one Node. Bit 0 (LSB) will be ON when Node 17 is present, Bit 15 (MSB) will be ON when Node 32 is present.

ONLINE 33-48

This output indicates which nodes (other than this channel) are present and transmitting data on the network. Each bit of the output word indicates the status of one Node. Bit 0 (LSB) will be ON when Node 33 is present, Bit 15 (MSB) will be ON when Node 48 is present.

ONLINE 49-64

This output indicates which nodes (other than this channel) are present and transmitting data on the network. Each bit of the output word indicates the status of one Node. Bit 0 (LSB) will be ON when Node 1 is present, Bit 49 (MSB) will be ON when Node 64 is present.

RESERVED1

This output is not presently used.

RESERVED2

This output is not presently used. DUP NODE

This output indicates the number of transmissions cancelled due to a

Page 137: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 137

duplicate node condition. A duplicate node condition occurs when the CA413D card is going to transmit as a node that is currently on the network.

TIMEOUT RX

This output indicates the number of timeouts that have occurred on Receive messages. A Timeout Rx will occur when a messages has not been received from the Node specified by the TX NODE parameter in the time specified by the TIMEOUT parameter of a CA413D2D RX block.

ABORTED TX

This output indicates the number of transmissions that have been aborted. An Aborted Transmission will occur when the message has not been transmiited in the time specified by the TX RATE parameter of a CA413 D2D TX block.

RETRIED TX

This output indicates the number of transmissions that have been retried.

BUSS OFF

This output is a counter that indicates the number of Buss Off conditions on the Scanport network (Buss Off conditions indicate excessive errors on the network).

UNEXP INT

This output is a counter that indicates the number of unexpected interrupts that occurred on the card.

CARD ID

This output indicates the model and hardware revision of the card found. CA413 cards are indicated by 413X. X is the hardware revision

VERSION

This output is the version of the software on the CA413 card. NOTE: Whenever the ADDRESS, or CHANNEL inputs are changed a forced download must be performed.

Page 138: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 138

CA413 D2D Tx

This block is designed to write two words to a D2D device connected to a CA413D D2D Interface Card. Supported Buad Rate is 500K baud.

ADDRESS

This is the address of the CA413 card as set by the rotary switch SW1 located on the CA413 card. For information on the setting of this switch, see the CA413 board description. Valid CARD ADDRESS values are 0 to 15.

CHANNEL

This input will determine which one of the four channels on the CA413 card you are using. Valid inputs are 1-4.

TX NODE

This input is the node number that the channel is to transmit as. Valid node numbers are 1-64. (1 channel can transmit as multiple nodes)

TX RATE

This input is the time in milliseconds between consecutive transmissions to the specified node. Valid inputs are 1 to 30000.

WORD1

This input is the first data word transmitted.

WORD2

This input is the second data word transmitted. NOTE: Whenever the ADDRESS, CHANNEL, or NODE inputs are changed a forced download must be performed.

Page 139: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 139

CA413 DataLink In

This block is designed to read up to four DataLinks from the connected Scanport device using the CA413S Scanport Interface Card. DataLinks consist of two words in both directions. Their function can be configured through the drive. The number of DataLinks used is determined by the CA413 DL Out Block set for the same Address and Channel. There can be a maximum of 1 CA413 DL In and CA413 DL Out blocks for the same Address and Channel setting. CA413 DL In and CA413 DL Out blocks must be used in pairs. (One CA413 DL In and one CA413 DL Out with the same Address and Channel setting).

ADDRESS

This is the address of the CA413 card as set by the rotary switch SW1 located on the CA413 card. For information on the setting of this switch, see the CA413 board description. Valid CARD ADDRESS values are 0 to 15.

CHANNEL

This input will determine which one of the four channels on the CA413 card you are using. Valid inputs are 1-4.

LINK1 WORD1

This output is the first word of DataLink 1 (also called DataLinkA) LINK1 WORD2

This output is the second word of DataLink 1 (also called DataLinkA) LINK2 WORD1

This output is the first word of DataLink 2 (also called DataLinkB)

Page 140: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 140

LINK2 WORD2

This output is the second word of DataLink 2 (also called DataLinkB) LINK3 WORD1

This output is the first word of DataLink 3 (also called DataLinkC)

LINK3 WORD2

This output is the second word of DataLink 3 (also called DataLinkC) LINK4 WORD1

This output is the first word of DataLink 4 (also called DataLinkD) LINK4 WORD2

This output is the second word of DataLink 4 (also called DataLinkD) NOTE: Whenever the ADDRESS, or CHANNEL inputs are changed a forced download must be performed.

Page 141: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 141

CA413 DataLink Out

This block is designed to write up to four DataLinks to the connected Scanport device using the CA413S Scanport Interface Card. DataLinks consist of two words in both directions. Their function can be configured through the drive. There can be a maximum of 1 CA413 DL In and CA413 DL Out blocks for the same Address and Channel setting. CA413 DL In and CA413 DL Out blocks must be used in pairs (One CA413 DL In and one CA413 DL Out with the same Address and Channel setting).

ADDRESS

This is the address of the CA413 card as set by the rotary switch SW1 located on the CA413 card. For information on the setting of this switch, see the CA413 board description. Valid CARD ADDRESS values are 0 to 15.

CHANNEL

This input will determine which one of the four channels on the CA413 card you are using. Valid inputs are 1-4.

NUM OF LINKS

This input determines how many of the DataLinks are used. DataLinks are used consecutively starting at Link1.

LINK1 WORD1

This input is the first word of DataLink 1 (also called DataLinkA).

LINK1 WORD2

Page 142: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 142

This input is the second word of DataLink 1 (also called DataLinkA). LINK2 WORD1

This input is the first word of DataLink 2 (also called DataLinkB).

LINK2 WORD2

This input is the second word of DataLink 2 (also called DataLinkB). LINK3 WORD1

This input is the first word of DataLink 3 (also called DataLinkC).

LINK3 WORD2

This input is the second word of DataLink 3 (also called DataLinkC). LINK4 WORD1

This input is the first word of DataLink 4 (also called DataLinkD). LINK4 WORD2

This input is the second word of DataLink 4 (also called DataLinkD). NOTE: Whenever the ADDRESS, CHANNEL or NUM OF LINKS inputs are changed a forced download must be performed.

Page 143: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 143

CA413 Fault Info

This block is designed to read fault information from a device using a CA413S Scanport Interface Card.

ADDRESS

This is the address of the CA413 card as set by the rotary switch SW1 located on the CA413 card. For information on the setting of this switch, see the CA413 board description. Valid CARD ADDRESS values are 0 to 15.

CHANNEL

This input will determine which one of the four channels on the CA413 card you are using. Valid inputs are 1-4.

FAULT RESET

This input will reset any active faults on a OFF to ON transition. FAULT ENTRIES

This output indicates the number of fault entries that have been logged.

TRIP INDEX

This output indicates which of the fault entries caused the device to trip (fault).

LAST FAULT

This output indicates the fault code for the last fault that occurred. Please consult documentation supplied with the specific device for meanings of different fault codes.

TRIP FAULT

This output indicates the fault code for the fault that tripped the device. Zero indicates that the device is not faulted. Please consult documentation supplied with the specific device for meanings of different fault codes. NOTE: Whenever the ADDRESS, or CHANNEL inputs are changed a forced download must be performed.

Page 144: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 144

CA413 SP Status

This block is designed to read status information from a CA413S Scanport Interface.

ADDRESS

This is the address of the CA413 card as set by the rotary switch SW1 located on the CA413 card. For information on the setting of this switch, see the CA413 board description. Valid CARD ADDRESS values are 0 to 15.

CHANNEL

This input will determine which one of the four channels on the CA413 card you are using. Valid inputs are 1-4.

Page 145: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 145

CLEAR

This input is used to clear the counter outputs of this block. ON will clear all the counter outputs of this block to zero, OFF will allow them to be updated normally.

PING EVENT

This output is a counter that indicates the number of ping messages received from the Scanport device.

PING TIME This output is the average time in milliseconds between successive ping messages.

CONTROL EVENT

This output is a counter that indicates the number of control messages (Control, Reference/Status, Feedback) received from the Scanport device.

CONTROL TIME

This output is the average time in milliseconds between successive control messages.

DATALINK1 EVENT

This output is a counter that indicates the number of DataLink1 messages received from the Scanport device.

DATALINK1 TIME

This output is the average time in milliseconds between successive DataLink1 messages.

DATALINK2 EVENT

This output is a counter that indicates the number of DataLink2 messages received from the Scanport device.

DATALINK2 TIME

This output is the average time in milliseconds between successive DataLink2 messages.

DATALINK3 EVENT

This output is a counter that indicates the number of DataLink3 messages received from the Scanport device.

DATALINK3 TIME

This output is the average time in milliseconds between successive DataLink3 messages.

DATALINK4 EVENT

This output is a counter that indicates the number of DataLink4 messages received from the Scanport device.

DATALINK4 TIME

This output is the average time in milliseconds between successive DataLink4 messages.

Page 146: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 146

C/S TX

This output is a counter that indicates the number of client/server messages transmitted.

C/S RX

This output is a counter that indicates the number of client/server messages received.

BUSS OFF

This output is a counter that indicates the number of Buss Off conditions on the Scanport network (Buss Off conditions indicate excessive errors on the network).

UNEXP INT

This output is a counter that indicates the number of unexpected interrupts that occurred on the card.

CARD ID

This output indicates the model and hardware revision of the card found. CA413 cards are indicated by 413X. X is the hardware revision.

VERSION

This output is the version of the software on the CA413 card. NOTE: Whenever the ADDRESS, or CHANNEL inputs are changed a force download must be performed.

Page 147: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 147

CA413 T2 Input

This block is designed to receive a Type 2 (T2) message from the device connected to a CA413S Scanport Interface Card.

ADDRESS

This is the address of the CA413 card as set by the rotary switch SW1 located on the CA413 card. For information on the setting of this switch, see the CA413 board description. Valid CARD ADDRESS values are 0 to 15.

Page 148: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 148

CHANNEL

This input will determine which one of the four channels on the CA413 card you are using. Valid inputs are 1-4.

INITED

This output being ON indicates that the channel has been initialized properly. COMMS OK

This output being ON indicates that the channel is communicating with a connected device properly.

PORT

This output indicates which port the channel is connected to (used for parameter settings inside the drive).

POWER SUPPLY

This output being ON indicates that the power supply is present on the Scanport cable. The following 16 outputs return the status of bits in the of the Drive/Inv Sts word inside the drive. Please consult appropriate drive documentation to determine their exact meaning.

RUN READY

This output being ON indicates that the RUN READY bit of the Drive/Inv Sts word is set.

RUNNING

This output being ON indicates that the RUNNING bit of the Drive/Inv Sts word is set.

COMMAND DIR

This output being ON indicates that the COMMAND DIR bit of the Drive/Inv Sts word is set.

ROTATING DIR

This output being ON indicates that the ROTATING DIR bit of the Drive/Inv Sts word is set.

ACCELERATING

This output being ON indicates that the ACCELERATING bit of the Drive/Inv Sts word is set.

DECELERATING

This output being ON indicates that the DECELERATING bit of the Drive/Inv Sts word is set.

WARNING

This output being ON indicates that the WARNING bit of the Drive/Inv Sts word is set.

Page 149: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 149

FAULTED

This output being ON indicates that the FAULTED bit of the Drive/Inv Sts word is set.

AT SET SPD

This output being ON indicates that the AT SET SPD bit of the Drive/Inv Sts word is set.

ENABLE LED

This output being ON indicates that the ENABLE LED bit of the Drive/Inv Sts word is set.

STOPPED

This output being ON indicates that the STOPPED bit of the Drive/Inv Sts word is set.

STOPPING

This output being ON indicates that the STOPPING bit of the Drive/Inv Sts word is set.

AT ZERO SPD

This output being ON indicates that the AT ZERO SPD bit of the Drive/Inv Sts word is set.

SPD REF A

This output being ON indicates that the SPD REF A bit of the Drive/Inv Sts word is set.

SPD REF B

This output being ON indicates that the SPD REF B bit of the Drive/Inv Sts word is set.

SPD REF C

This output being ON indicates that the SPD REF C bit of the Drive/Inv Sts word is set.

DRIVE FEEDBACK

This output is the numeric feedback being retruned from the drive. Please cunsult appropriate drive documentation for scaling meaning etc NOTE: Whenever the ADDRESS, or CHANNEL inputs are changed a forced download must be performed.

Page 150: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 150

CA413 T2 Output

This block is designed to send a Type 2 (T2) message containing numeric reference and logical command information from a CA413S Scanport Interface Card.

ADDRESS

This is the address of the CA413 card as set by the rotary switch SW1 located on the CA413 card. For information on the setting of this switch, see the CA413 board description. Valid CARD ADDRESS values are 0 to 15.

CHANNEL

This input will determine which one of the four channels on the CA413 card

Page 151: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 151

you are using. Valid inputs are 1-4. The following 16 inputs set bits of the Logic Input Sts word inside the drive. Please consult appropriate drive documentation to determine their exact function.

STOP

This input being ON will set the STOP bit in the Logic Input Sts word of the drive.

START

This input being ON will set the START bit in the Logic Input Sts word of the drive.

JOG1

This input being ON will set the JOG1 bit in the Logic Input Sts word of the drive.

CLEARFLT

This input being ON will set the CLEARFLT bit in the Logic Input Sts word of the drive.

FWD

This input being ON will set the FWD bit in the Logic Input Sts word of the drive.

REV This input being ON will set the REV bit in the Logic Input Sts word of the drive.

JOG2

This input being ON will set the JOG2 bit in the Logic Input Sts word of the drive.

ILIM STOP

This input being ON will set the ILIM STOP bit in the Logic Input Sts word of the drive.

COAST STOP

This input being ON will set the COAST STOP bit in the Logic Input Sts word of the drive.

RAMP DISABLE

This input being ON will set the RAMP DISABLE bit in the Logic Input Sts word of the drive.

FLUX ENABLE

This input being ON will set the FLUX ENABLE bit in the Logic Input Sts word of the drive.

PTRIM ENABLE

This input being ON will set the PTRIM ENABLE bit in the Logic Input Sts

Page 152: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 152

word of the drive. SPD REF A

This input being ON will set the SPD REF A bit in the Logic Input Sts word of the drive.

SPD REF B

This input being ON will set the SPD REF B bit in the Logic Input Sts word of the drive.

SPD REF C

This input being ON will set the SPD REF C bit in the Logic Input Sts word of the drive.

RESET DRIVE

This input being ON will set the RESET DRIVE bit in the Logic Input Sts word of the drive.

REFERENCE

This input is the numeric reference sent to the drive. Please cunsult appropriate drive documentation for scaling usage etc. NOTE: Whenever the ADDRESS, or CHANNEL inputs are changed a forced download must be performed.

Page 153: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 153

CA416-2 Input

This block is designed to present the status of the inputs of the CA416-2 Position Input Card as outputs of this block.

CARD ADDRESS This is the address of the CA416 card as set by the rotary switch SW1 located on the CA416 card. For information on the setting of this switch, see the CA416 - Resolver Input Card board description. Valid CARD ADDRESS values are 0 to 15

RESET 1 This input will reset the count of the resolver connected to channel 1 to zero (this input only works with resolvers that support the reset function)

RESET 2 This input will reset the count of the resolver connected to channel 2 to zero (this input only works with resolvers that support the reset function)

RESET 3 This input will reset the count of the resolver connected to channel 3 to zero (this input only works with resolvers that support the reset function)

OUTPUT 1 This output is a counter that represents the position of the resolver connected to channel 1. This output will rollover at different values depending on the number of bits from the resolver being used

OUTPUT 2 This output is a counter that represents the position of the resolver connected to channel 2. This output will rollover at different values depending on the number of bits from the resolver being used

OUTPUT 3 This output is a counter that represents the position of the resolver connected to channel 3. This output will rollover at different values depending on the number of bits from the resolver being used The outputs of this block can be converted to a per unit speed signal using a Pulse to Speed2 Block

Page 154: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 154

CA419 Input

This block is designed to read three words of data from a DATA SET using the ABB DDCS protocol

CARD ADDRESS This is the address of the CA419 card as set by the rotary switch SW1 located on the CA419 card. For information on the setting of this switch, see the CA419 board description. Valid CARD ADDRESS values are 0 to 15

CHANNEL This input will determine which one of the four channels on the CA419 card you are using. Valid inputs are 1-4.

DATA SET This input determines which data set the three words from. If the channel is configured as a master the input must be a even number. If the channel is configured as a slave this number will be odd.

MASTER This is a logical input which determines if the channel is to be configured as a master or a slave. This input being on makes the channel a master, this input being off configures this channel as a slave.

WORD 1 This is the first word of the data set which is read.

WORD 2 This is the second word of the data set which is read.

WORD 3 This is the third word of the data set which is read. *Note: When using the ACS600 the 3 words read from the drive are dependent on the application software in the drive. For a complete list contact SAF Drives and Automation.

Page 155: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 155

INITED This output indicates whether or not the card has finished initialization. The output is off during initialization and turns on once the card is initialized and ready to communicate NOTE: When ever the CARD ADDRESS, CHANNEL, DATASET, or MASTER inputs are changed a force download must be performed.

Page 156: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 156

CA419 Output

This block is designed to read three words of data using the ABB DDCS protocol

CARD ADDRESS This is the address of the CA419 card as set by the rotary switch SW1 located on the CA419 card. For information on the setting of this switch, see the CA419 board description. Valid CARD ADDRESS values are 0 to 15

CHANNEL This input will determine which one of the four channels on the CA419 card you are using. Valid inputs are 1-4.

DATA SET This input determines which data set the three words from. If the channel is configured as a master the input must be a odd number. If the channel is configured as a slave this number will be even.

MASTER This is a logical input which determines if the channel is to be configured as a master or a slave. This input being on makes the channel a master, this input being off configures this channel as a slave.

WORD 1 This is the first word which to be written to the data set

WORD 1 This is the second word which to be written to the data set

WORD 1 This is the third word which to be written to the data set

Page 157: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 157

*Note: When using the ACS600 WORD 1, WORD 2, WORD 3 are dependent on the application software in the drive. For a complete list contact SAF Drives and Automation.

INITED This output indicates whether or not the card has finished initialization. The output is off during initialization and turns on once the card is initialized and ready to communicate NOTE: When ever the CARD ADDRESS, CHANNEL, DATASET, or MASTER inputs are changed a force download must be performed.

Page 158: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 158

Enet IO Nodes

This block will show what nodes of PLC Direct Ethernet IO are available on the network

NODES 1-16

This output indicates the status of nodes 1 to 16. Bit 0 (LSB) corresponds to Node1, Bit15 (MSB) corresponds to Node16. A bit being ON indicates that the node is present on the network. A bit being OFF indicates that the node is not present on the network

NODES 17-32

This output indicates the status of nodes 17 to 32. Bit 0 (LSB) corresponds to Node17, Bit15 (MSB) corresponds to Node32. A bit being ON indicates that the node is present on the network. A bit being OFF indicates that the node is not present on the network

NODES 33-48

This output indicates the status of nodes 33 to 48. Bit 0 (LSB) corresponds to Node33, Bit15 (MSB) corresponds to Node48. A bit being ON indicates that the node is present on the network. A bit being OFF indicates that the node is not present on the network

NODES 49-64

This output indicates the status of nodes 49 to 64. Bit 0 (LSB) corresponds to Node49, Bit15 (MSB) corresponds to Node64. A bit being ON indicates that the node is present on the network. A bit being OFF indicates that the node is not present on the network

Page 159: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 159

Enet IO Slot Info

This block will indicate information about the IO module installed in a specified slot of PLC Direct Ethernet IO.

MODULE ID

This input specifies the MODULE ID as set by DIP SWITCHES on the Ethernet IO

SLOT

This input specifies the SLOT number. Valid Slot numbers are 0 to 7

SLOT ID

This output is the ID for the IO module installed in the specified Module ID and Slot number

SLOT STATUS

This output is the STATUS for the IO module installed in the specified Module ID and Slot number

Page 160: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 160

Enet IO Status

This block displays statistical information about communications for PLC Direct Ethernet IO

CLEAR

This input being ON will clear the output values. DATA TX COUNT

This output is the number of Data messages transmitted.

DATA RX COUNT

This output is the number of Data messages received. QUERY TX COUNT

This output is the number of Query messages transmitted.

QUERY RX COUNT

This output is the number of Query messages received.

Page 161: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 161

DATA RATE (ms)

This output is the average time to update all modules expressed in milliseconds.

TX RETRIES

This output is the number of messages retried. TX RETRY NODE

This output is the last node number that required a retry

MAX DATA RATE

This output is the maximum time to update all modules, expressed in milliseconds.

MAX DATA NODE

This output is the node with the MAX DATA RATE update time. DROPOFFS

This output is the number of dropoffs that have occurred. DROPOFF NODE

This output is the last Node to experience a dropoff

STATUS 12-16

Presently unused.

Page 162: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 162

Enet Slot In

This block will read the inputs of a specified IO Module

MODULE ID

This input specifies the MODULE ID as set by DIP SWITCHES on the Ethernet IO

SLOT

This input specifies the SLOT number. Valid Slot numbers are 0 to 7 The processeor slot is reserved for the processor only and does not have a slot number

Page 163: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 163

NO COMMS VALUE

This input is the value that will be displayed for the outputs when there is no communications

MODULE COMMS OK

This output will be ON when there is communications to the specified module.

/SLOT COMMS OK

This output will be ON when there is communications to the specified slot SLOT TYPE

This output is the type of the IO module installed in the specified Module ID and Slot number

INPUT0 - INPUT15

(replace X with the desired input 0-15) This output indicates the status of INPUTX of the specified ModuleID/Slot. If there is no communications with the Module/Slot, this output will be determined by bit X of NO COMMS VALUE

Page 164: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 164

Enet Slot Out

This block will control the outputs of a specified IO Module at the specified Module ID / Slot

MODULE ID

This input specifies the MODULE ID as set by DIP SWITCHES on the Ethernet IO

SLOT

This input specifies the SLOT number. Valid Slot numbers are 0 to 7 The processeor slot is reserved for the processor only and does not have a slot number

OUTPUT0 - OUTPUT15

(replace X with the desired output 0-15)

Page 165: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 165

This input determines the state of OUTPUTX of the specified ModuleID/Slot. MODULE COMMS OK

This output will be ON when there is communications to the specified module.

SLOT COMMS OK

This output will be ON when there is communications to the specified slot

SLOT TYPE

This output is the type of the IO module installed in the specified Module ID and Slot number

Page 166: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 166

SAFlink Read

This block is designed to read up to 32 words of data from a SAFLink card

ENABLE This input being ON allows the block to function.

CARD ADDRESS This is the address of the CA414 SAFLink card as set by the rotary switch on the card. For information on the setting of these switches, see the CA414 board description. Valid CARD ADDRESS values are 0 to 3.

BLOCK NUMBER This input is the number of the block that the data is to be read from. The memory interface of the CA414 consists of 30 blocks of 32 words of data. valid block numbers are 0-29.

DATA 0-31 These outputs are the data that is to be read.

Page 167: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 167

DRIVER REV This output is the revision number of the SAFphire driver on board the CA414 card.

BOARD REV This output is unused

GOOD BLOCKS This output is the number of blocks that have been successfully transferred by this block.

LOCKED OUT This output will be ON if this block is locked out of the dual ported memory on the CA414 card.

Page 168: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 168

SAFlink Write

This block is designed to write up to 32 words of data to a SAFLink card

ENABLE This input being ON allows the block to function.

CARD ADDRESS This is the address of the CA414 SAFLink card as set by the rotary switch on the card. For information on the setting of these switches, see the CA414 board description. Valid CARD ADDRESS values are 0 to 3.

BLOCK NUMBER This input is the number of the block that the data is to be written to. The memory interface of the CA414 consists of 30 blocks of 32 words of data. Note:Valid block numbers are 0-29.

DATA 0-31 These inputs are the data that is to be written.

Page 169: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 169

DRIVER REV This output is the revision number of the SAFphire driver on board the CA414 card.

BOARD REV This output is unused

GOOD BLOCKS This output is the number of blocks that have been successfully transferred by this block.

LOCKED OUT This output will be ON if this block is locked out of the dual ported memory on the CA414 card.

Page 170: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 170

Comm Read Reg

This block is designed to read 8 words from the 64 comm registers available on a CA451 card.

OFFSET This is the offset within the possible 64 words where the 8 consecutive words will be read from. ( see app note for the specific protocol you are using) valid range is 0-56

DATA 0 This is the first word to be read.

DATA 1 This is the second word to be read.

DATA 2 This is the third word to be read.

DATA 3 This is the fourth word to be read.

DATA 4 This is the fith word to be read.

DATA 5 This is the sixth word to be read.

DATA 6 This is the seventh word to be read.

DATA 7 This is the eighth word to be read.

Page 171: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 171

Comm Status

This block is designed to monitor the two serial ports on a CA451 card PORT 0 refers to the DOWNLOAD PORT. PORT 1 refers to the HANDTERM PORT.

PORT 0 PROTOCOL This output indicates which serial protocol port 0 is set for - 0 = no protocol selected or download 1 = AB DF1 2= Modbus Slave

Page 172: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 172

3= Modbus Master @ 19.2 kbaud 4= Modbus Master @ 9600 baud

PORT0 CHAR TX This output will increment every time a character is transmitted on port 0.

PORT0 CHAR RX This output will increment every time a character is received on port 0.

PORT0 MSG TX This output will increment every time a message is transmitted on port 0.

PORT0 MSG RX This output will increment every time a message is received on port 0.

PORT0 CHAR ERR This output will increment every time the UART for port 0 detects an error.

PORT0 TIMEOUT This output will increment every time a transmission is made and nothing is received within an allotted amount of time defined by each specific protocol. (see app note for specific protocol you are using)

PORT 1 PROTOCOL This output indicates which serial protocol port 1 is set for - 0 = no protocol selected or HandTerm 1 = AB DF1 2= Modbus Slave 3= Modbus Master @ 19.2 kbaud 4= Modbus Master @ 9600 baud

PORT1 CHAR TX This output will increment every time a character is transmitted on port 1.

PORT1 CHAR RX This output will increment every time a character is received on port 1.

PORT1 MSG TX This output will increment every time a message is transmitted on port 1.

PORT1 MSG RX This output will increment every time a message is received on port 1.

PORT1 CHAR ERR This output will increment every time the UART for port 1 detects an error.

PORT1 TIMEOUT This output will increment every time a transmission is made and nothing is

Page 173: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 173

received within an allotted amount of time defined by each specific protocol. (see app note for specific protocol you are using)

MAINLINE COUNT This parameter is a indication of processor activity.

WORD1- WORD5 These outputs are not presently used at this time.

Page 174: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 174

Comm Write Reg

This block is designed to write 8 words from the 64 COMM registers available on a CA451 card.

OFFSET This is the offset within the possible 64 words where the 8 consecutive words will be written to. ( see app note for the specific protocol you are using) valid range is 0-56

DATA 0 This is the first word to be written.

DATA 1 This is the second word to be written.

DATA 2 This is the third word to be written.

DATA 3 This is the fourth word to be written.

DATA 4 This is the fith word to be written.

DATA 5 This is the sixth word to be written.

DATA 6 This is the seventh word to be written.

DATA 7 This is the eighth word to be written

Page 175: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 175

Encoder

This block is designed to perform a priority encoder function on 15 logical inputs. The block outputs a value corresponding to the highest priority input that is ON.

ENABLE This input being ON allows the output of this block to be updated. When this input is OFF, the output of this block will not change value.

LATCH OFF This logical input being OFF, will cause the OUTPUT CODE to not be updated.

LATCH ON

Page 176: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 176

This logical input being ON, will cause the OUTPUT CODE to not be updated.

INPUT 1-15 These are the fifteen logical inputs to be encoded. Input 1 is the highest priority input. Input 15 is the lowest priority input

OUTPUT CODE This output will represent the number of the highest priority input which is ON. The value will be 0 if none of the inputs are ON. This output will change value only if ENABLE is ON and LATCH ON is OFF and LATCH OFF is ON.

Page 177: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 177

Ethernet Status

This block is designed to monitor the ethernet port of a CA451 card

HW ADDR HI This is the high word of the ethernet hardware address

HW ADDR LO This is the low word of the ethernet hardware address

GLOBAL DATA RX This output will increment every time a GLOBAL DATA packet is received.

GLOBAL DATA TX This output will increment every time a GLOBAL DATA packet is transmitted.

UDP PORT1 This output will increment every time a UDP packet is transmitted during annunciation using SBL for Windows.

UDP PORT2 This output will increment every time a UDP packet is transmitted during any other communication using SBL for Windows other than annunciating.

IP ADDR HI

Page 178: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 178

This is the high word of the IP address IP ADDR LO

This is the low word of the IP address

STATUS This output is not presently used

WORD1 - WORD5 These outputs are not presently used.

Page 179: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 179

FIFO

This block is designed to perform a 32 word deep FIFO (First In First Out) Function.

RESET This input being ON will clear any entries in the FIFO

CLOCK IN This input changing from an OFF to ON condition will cause the INPUT to be placed into the FIFO and the NO. OF ENTRIES to be incremented.

CLOCK OUT This input changing from an OFF to ON condition will cause the OUTPUT to be set to the value of the last entry in the FIFO. The NO., OF ENTRIES output will be decremented.

INPUT This input will be placed in the FIFO on the rising edge of the CLOCK IN input

OUTPUT This output is the output of the FIFO. Empty entries in the FIFO will contain 0.

NO. OF ENTRIES This output indicates the number of entries in the FIFO. This output will be in the range of 0 to 31. Any positive transitions of the CLOCK IN input while the NO. Of ENTRIES is equal to 31 will be ignored. Any positive transitions of the CLOCK OUT input while the NO. OF ENTRIES is equal to 0 will be ignored.

ANY ENTRIES This output will be ON when there are any entries in the FIFO.

Page 180: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 180

Global Read

This block is designed to read 8 words of global data from another SAFphire node. Each Node has a maximum 128 words of GLOBAL DATA that it can transmit.

NODE This is the node address of the SAFphire you will be reading the 8 words from.

OFFSET This is the offset within the possible 128 words where the 8 consecutive words will be read from. ( see app note "Ethernet Communications" for more info ) valid range is 0-120

DATA 0 This is the first word to be read.

DATA 1 This is the second word to be read.

DATA 2 This is the third word to be read.

DATA 3 This is the fourth word to be read.

DATA 4 This is the fith word to be read.

DATA 5 This is the sixth word to be read.

Page 181: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 181

DATA 6 This is the seventh word to be read.

DATA 7 This is the eighth word to be read.

Page 182: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 182

Global Write

This block is designed to transmit 8 words of global data that another SAFphire node could read. Each Node has a maximum 128 words of GLOBAL DATA that it can transmit.

OFFSET This is the offset within the possible 128 words where the 8 consecutive words to be written will start from. ( see app note "Ethernet Communications" for more info ) valid range is 0-120

DATA 0 This is the first word to be written.

DATA 1 This is the second word to be written.

DATA 2 This is the third word to be written.

DATA 3 This is the fourth word to be written.

DATA 4 This is the fith word to be written.

DATA 5 This is the sixth word to be written.

DATA 6 This is the seventh word to be written.

DATA 7 This is the eighth word to be written.

Page 183: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 183

MB Slave Node

This block has an effect only if the Modbus Master Protocol (SW2 or 3 = 3 or 4) is being used with a CA451 card. This block is selects the node number of the ModBus Slave Device being communicated with. If no MB SLAVE NODE block is present the slave node is 1.

MODBUS SLAVE This is the node number of the Modbus Slave device. Valid inputs are 1 to 32.

Page 184: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 184

Lookup 16

This block is designed to act as a lookup table, with a variable number of points. The points are defined as X-Y co-ordinates, which when pieced together create a function: y = f(x). The block takes an input value which is used as the "x" co-ordinate, and does a linear interpolation between the surrounding points, to create an output which is the corresponding "y" co-ordinate. If the INPUT X value is less than X 1, the output will be equal to Y 1. If the INPUT X value is greater than the last x value ( defined by # OF POINTS ), then the output will be equal to the last y value.

ENABLE This input being ON allows the output of this block to be updated. When this input is OFF the output of this block will not change value.

# OF POINTS This input is the number of X-Y co-ordinates which are to be used. The first set used is always X 1, Y 1. The last set used is X (# OF POINTS), Y (# OF POINTS). The remaining X-Y inputs have no effect upon the output of this block.

X INPUT This input is the value of X used to calculate the output.

Page 185: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 185

X 1 - X 16 These inputs are the 16 x co-ordinates to be used in the block. The lookup table uses # OF POINTS to determine how many sets of points are to be used. The values of the "x" coordinates greater than X (# OF POINTS) have no effect on card operation.

Y 1 - Y 16 These inputs are the 16 "y" coordinates to be used in the block. The lookup table uses # OF POINTS to determine how many sets of points are to be used. The values of the "y" coordinates greater than Y (# OF POINTS) have no effect on card operation.

OUTPUT Y This output is the calculated value of Y for the X INPUT value of X. IN USING THIS BLOCK A FEW SIMPLE RULES MUST BE OBEYED: 1: All X-Y co-ordinates are entered from lowest value of x, towards the highest value of x. 2: # of points >= 2. 3: Adjacent X co-ordinates must differ by at least 1 and no more than 32767. 4: Adjacent Y co-ordinates must differ by no more than 32767.

Page 186: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 186

Lookup 4

This block is designed to act as a lookup table, with a variable number of points. The points are defined as X-Y co-ordinates, which when pieced together create a function: y = f(x). The block takes an input value which is used as the "x" co-ordinate, and does a linear interpolation between the surrounding points, to create an output which is the corresponding "y" co-ordinate. If the INPUT X value is less than X 1, the output will be equal to Y 1. If the INPUT X value is greater than the last x value ( defined by # OF POINTS ), then the output will be equal to the last y value.

ENABLE This input being ON allows the output of this block to be updated. When this input is OFF the output of this block will not change value.

# OF POINTS This input is the number of X-Y co-ordinates which are to be used. The first set used is always X 1, Y 1. The last set used is X (# OF POINTS), Y (# OF POINTS). The remaining X-Y inputs have no effect upon the output of this block.

X INPUT This input is the value of X used to calculate the output.

X 1 - X 4 These inputs are the 4 x co-ordinates to be used in the block. The lookup table uses # OF POINTS to determine how many sets of points are to be

Page 187: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 187

used. The values of the "x" coordinates greater than X (# OF POINTS) have no effect on card operation.

Y 1 - Y 4 These inputs are the 4 "y" coordinates to be used in the block. The lookup table uses # OF POINTS to determine how many sets of points are to be used. The values of the "y" coordinates greater than Y (# OF POINTS) have no effect on card operation.

OUTPUT Y This output is the calculated value of Y for the X INPUT value of X. IN USING THIS BLOCK A FEW SIMPLE RULES MUST BE OBEYED: 1: All X-Y co-ordinates are entered from lowest value of x, towards the highest value of x. 2: # of points >= 2. 3: Adjacent X co-ordinates must differ by at least 1 and no more than 32767. 4: Adjacent Y co-ordinates must differ by no more than 32767.

Page 188: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 188

Running Avg

This block is designed to perform a running average function. The algorithm is:

ENABLE This input being ON allows the output of this block to be updated. This input being OFF sets the OUTPUT and all internally stored previous samples to zero

PRESET ON This logical input being ON while the block is enabled, will set the output and the internally stored previous samples to the PRESET VALUE. This logical input being OFF while the block is enabled, will allow the output to calculated based on the remaining inputs.

PRESET OFF This logical input being OFF while the block is enabled, will set the output and the internally stored previous samples to the PRESET VALUE. This logical input being ON while the block is enabled, will allow the output to calculated based on the remaining inputs.

PRESET VALUE This input is the value the output and the internally stored previous samples are set to when preset by either PRESET ON or PRESET OFF.

INPUT This input is the parameter to be averaged.

Page 189: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 189

# OF POINTS This input is the number of previous samples to be averaged. NOTE: Valid # OF POINTS values are 2 to 100

SAMPLE RATE This input is the length of time in milliseconds between consecutive samples. NOTE: Valid SAMPLE RATE values are SAMPLE TIME (as set by a SYS CONFIG block) to 32767.

OUTPUT This output is the calculated average of the INPUT

Page 190: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 190

Save

This block is designed to save the values of parameters while power is off. NOTE: There may be a maximum of one save block per block program.

PARAMETERS This numeric input is the number of parameters to be saved. Valid inputs are 0 to 16

PARM 0-15 These numeric inputs are the parameters to be saved.

SAVED 0-15 These numeric outputs are the values of PARM 0-15 during the last scan before power was removed. SAVED 0 corresponds to PARM 0 etc.

Page 191: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 191

FIRST SCAN This logical output will be ON during the first scan after power is applied.

Page 192: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 192

System Config

This block is designed to configure the system and access variables, which are part of the system executive. This block also access diagnostic analog and logical outputs found on a CA409-2 card NOTE: This block runs in the background, so it does not add overhead to the control loop. It is a good programming practice to call a sys config block in all SBL programs.

INH DOWNLOAD This input being ON will not allow a new program to be downloaded. This input should be used to ensure that a download does not occur during regulation. This input being OFF will allow a new download. If this block is not called, download is allowed at any time. If a download must be performed while this input is ON, a forced download will override this input and cause the processor to reset.

SAMPLE TIME This input represents the desired sample time in milliseconds. In the case that this block is not called the default value is 16 NOTE: Valid SAMPLE TIME values are 1 to 16.

CRYSTAL FREQ This input is the crystal frequency in MHz which is used with the TMS320C25. This value should always be 32. CA408-1 Cards use a 50 MHz crystal. This is hard coded in firmware to allow this parameter to be left at 32 for backwards compatibility

STATUS CODE This input is a code which is used to display the status of the unit. The

Page 193: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 193

possible values are listed below. The first letter of the status will be displayed in the upper right corner of the Hand Held Display. NOTE: Valid STATUS CODE values are 0 to 4. 0 Running 1 Jog 2 Stopped 3 Error 4 Faulted

FAULT CODE This input is a code which is used to indicate any active faults for display on the Hand Held Display. The strings which are displayed are programmable through the editing software. A value of 0 indicates no active faults. Values of 1 to 15 indicate active faults. NOTE: Valid FAULT CODE values are 0 to 15.

MAX EXEC TIME This input is the threshold value for the TIME FAULT output. This value is expressed in microseconds. If the EXECUTION TIME exceeds the MAX EXEC TIME the TIME FAULT output will be ON. Example : sample time = 8 ( 8 milliseconds ) let: max exec time = 5000 ( 5 milliseconds ) The TIME FAULT output will turn on if the execution time exceeds 5 msec. Note: The following three inputs do not exist with OEM SAFphire

ANALOG OUT1 This input is the numeric representation of the analog output ANALOG1

ANALOG OUT2 This input is the numeric representation of the analog output ANALOG2

LOGIC OUT1 This input determines the status of the LOGIC1 output

EXEC TIME This output is the actual execution time spent running the foreground portions of the downloaded blocks. The difference between the SAMPLE TIME and the EXEC TIME is spent running the background portions of the downloaded blocks. Blocks which run in the background, add no overhead to the foreground (control) loop. If this output is viewable, the impact of adding or deleting blocks can be seen.

BKGND UPDATES This ouput indicates how many times all the background blocks and the

Page 194: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SBL Block Descriptions

Page 194

background portion of normal blocks have been executed in the past second. TIME FAULT

This output will be ON to indicate that the EXEC TIME exceeds the value given by MAX EXEC TIME. Processing is not halted internally. It is up to the user to make this a fault in the SBL program.

LOOP FAULT This output will be ON if there are no blocks downloaded with foreground functions detected.

Page 195: SBL Block Descriptions - Home | SAFphire · 2013-04-04 · SBL Block Descriptions Page 8 Logic XOR 2 2 input XOR function Mask Input bitwise mask function Toggle toggle function COMPARISON

SAF Drives Inc.18 Neville St., Unit CNew Hamburg, ONCanadaN3A 4G7

Toll Free: 1-800 3 ASK SAF (Canada/US)TTel: 519-662-6489Fax: 1-866-280-5247email: [email protected]: www.safphire.com