No Slide Title

Download Report

Transcript No Slide Title

Application SW Interfaces
Panel
Function
Block
Library
I/O
NC1131-3
Application
Fieldbus
File: 1 7/17/2015/KH
Software
Motor
Control
3~
Application SW Interfaces
3.2 Keypad Reference
Example of
specification level
DIB4
DIB5
Uin
Iin
2.1.11
2.1.12
2.1.13
2.1.14
2.1.15
I/O Reference
Keypad Ctrl Ref
Fieldbus Ctr Ref
Preset Speed 1
Preset Speed 2
Parameters
Preset speed 1
Preset speed 2
3.1 Control Place
Internal frequency
reference
I/O
Reference from the Fieldbus
Start/Stop from the Fieldbus
Direction from the Fieldbus
DIA1
Start forward
(programmable)
DIA2
Start reverse
(programmable)
Start/Stop buttons
Reset button
Start/Stop
Programmable
Start/Stop and
reverse logic
Internal Start/Stop
Reverse
Internal reverse
3.3 Keypad Direction
DIB6
DIA3
File: 2 7/17/2015/KH
Fault reset input
External fault input
(programmable)
>1
Internal fault reset
Firmware
interface
Firmware Interface
• Motor Control software (=system software) can be
controlled from application by firmware interface
APPLICATION
FIRMW ARE
IN TERFACE
Internal Frequency
Reference
FreqRef
Internal Start/ Stop
AccelerationTime
SYSTEM SOFTW ARE
f(Hz)
Start
FreqRamp
t(s)
File: 3 7/17/2015/KH
Firmware interface groups
CLMonitor
Systembus
System
Statistics
Diagnostics
Fieldbus
SCI
Panel
CLSettings
EXSettings
MCSettings
MotorControl
PowerUnit
Global_Variables
File: 4 7/17/2015/KH
Closed loop monitoring values
System bus, communication between drives
Control board type, system status, slot-board statuses
MWh counters etc.
Fault -related variables
Fieldbus interface
Serial Communication Interface
Keypad -related variables, button status, symbols, etc.
Closed loop -settings
“Expert level” motor control settings
Motor control settings, min/max frequency, acceleration time, etc.
Basic settings, motor nominal values, etc.
Power unit settings and monitoring
Variables created in the application
Firmware interface (MotorControl)
File: 5 7/17/2015/KH
Vacon NC1131-3 Engineering
•
•
•
•
•
NC1131
NCDef
NCDrive
NCLoad
NCDebug
File: 6 7/17/2015/KH
Vacon NC1131-3 Engineering
TOOLS & FILE
FOR THE USER
.MDB is also in the VCNpackage
File: 7 7/17/2015/KH
NC1131-3
• 4 programming languages:
– FBD (Function Block Diagram)
– ST (Structured Text)
– SFC (Sequential Function Chart)
– LD (Ladder Diagram)
– IEC 1131-3 Programming Methodology
» Bonfatti - Monari - Sampieri
» ISBN: 2-9511585-0-5
File: 8 7/17/2015/KH
NC1131-3
FBD
SFC
AND
A
C
START
B
STATE 1
ST
IF A=TRUE AND B =
FALSE
THEN C := TRUE
ELSE C:= FALSE
END_IF
ACTION
(CODE FOR
STATE 1)
C := FALSE
TRANSITION CONDITION
TRANSITION CONDITION
A = TRUE AND B = FALSE
A = FALSE OR B = TRUE
STATE 2
ACTION
(CODE FOR
STATE 2)
C := TRUE
LD
A B
C
-| |--|/|----------------( )
File: 9 7/17/2015/KH
NC1131-3
Blocks from libraries
LIBRARIES
POU’s
(Each POU
has a code)
Task
associations
TASKS
File: 10 7/17/2015/KH
NC1131-3
• POU’s (program organization units)
– Program
– Function Block
– Function
• Librarys
– Vacon_NXS
– NXFIFFLIB_V1_02
– Own librarys
File: 11 7/17/2015/KH
NC1131-3
• CYCLIC TASKS
– 5 priority level
– NXP (1-1000ms)
– NXS (5-1000ms)
• Special Tasks
– Triggered when a parameter value is changed
– Triggered from the application
• Start task
• Stop task
• Dummy task
File: 12 7/17/2015/KH
NC1131-3
CYCLIC TASKS: PRE-EMPTIVE SCHEDULING
TASK A: Priority 5ms,
TASK B: Priority 5ms,
TASK C: Priority 10ms,
TASK D: Priority 10ms,
5 ms
A
B
C
D
IDLE
File: 13 7/17/2015/KH
10 ms
Interval 5ms,
Interval 15ms,
Interval 10ms,
Interval 20ms,
15 ms
Execution time 1ms
Execution time 2ms
Execution time 1ms
Execution time 5ms
20 ms
25 ms
30 ms
35 ms