Bloki funkcyjne CODE SYS, Instrukcje, EATON MOELLER

[ Pobierz całość w formacie PDF ]
User Manual
10/10 MN05010002Z-EN
replaces 02/05 AWB2786-1456GB
Function Blocks for CoDeSys
  All brand and product names are trademarks or registered
trademarks of the owner concerned.
Emergency On Call Service
Please call your local representative:
or
Hotline After Sales Service:
+49 (0) 180 5 223822 (de, en)
AfterSalesEGBonn@eaton.com
Original Operating Instructions
The German-language edition of this document is the original
operating manual.
Translation of the original operating manual
All editions of this document other than those in German language
are translations of the original German manual.
1
st
published 2002, edition date 08/02
2
nd
edition 11/2002
3
rd
edition 04/2003
4
th
edition 04/2004
5
th
edition 07/2004
6
th
edition 09/2004
7
th
edition 02/2005
8
th
edition 10/2010
See revision protocol in the “About this manual“ chapter
© Eaton Industries GmbH, 53105 Bonn
Authors: Norbert Mausolf, Peter Roersch, Oswald Weiß
Editor: Thomas Kracht
Translator: Patrick Chadwick
All rights reserved, including those of the translation.
No part of this manual may be reproduced in any form
(printed, photocopy, microfilm or any other process) or processed,
duplicated or distributed by means of electronic systems without
written permission of Eaton Industries GmbH, Bonn.
Subject to alteration without notice.
10/10 MN05010002Z-EN
Contents
About this manual
5
List of revisions
5
Library summary
5
Additional manuals
6
Symbols
6
1 Standard S40 function blocks: XS40_MoellerFB.lib
7
Sucosoft S40 compatibility
7
Communication
8
– MI4netDP16; communication block for MI4
(16 byte PROFIBUS-DP data channel)
8
– MI4netDP32; communication block for MI4
(32 byte PROFIBUS-DP data channel)
8
– MV4netDP38; communication block for MV4
(38 byte PROFIBUS-DP data channel)
9
– MV4netDP70; communication block for MV4
(70 byte PROFIBUS-DP data channel)
9
Convert
10
– DataScale; Data scaling
10
– IEEE_To_Real; number conversion:
IEEE-754 standard format to data type REAL
11
– Real_To_IEEE; number conversion: data type REAL
to IEEE-754 standard format
11
CounterFunctionBlocks
12
– S40_16BitCounter, S40_32BitCounter
Up/down counter
12
Date and Time
13
– DATconcatX; generate date and time
13
– DateConcat; generate date
14
– DateSplit; Split data type DATE
14
– DATSplitX; Split data type DATE_AND_TIME (DT)
15
– TimeConcatX; generate time period
16
– TimeSplitX; Split variable type TIME
17
– TODconcat; Generate time of day
17
– TODSplit; Split data type TIME_OF_DAY
18
RegisterFunctionBlocks
18
–FifoBx, FifoWx
FIFO register (8/16-bit)
18
–LifoBx, LifoWx
LIFO register (8/16-bit)
20
– SR_x, SRB_x, SRW_x
Shift register
21
Timer
24
– MS_TimeFalling; Switch-off delay timer, milliseconds
24
– MS_TimeRising; Switch-on delay timer, milliseconds
25
– S_TimeFalling; Switch-off delay timer, seconds
26
– S_TimeRising; Switch-on delay timer, seconds
27
– TimeGenerator; Clock generator
28
– TimePulse; Pulse timer
29
1
Contents
10/10 MN05010002Z-EN
2 Date and Time function blocks of the S40:
XS40_MoellerFB_RTC.lib
31
– S40_GetRealTimeClock
Read the real-time clock
31
– S40_RTC; Set the real-time clock
31
– S40_SetRealTimeClock; Set the real-time clock
32
3 Clock function blocks: RTCLib.lib
33
Clock function blocks
33
– SetRealTimeClock; Set the real-time clock
33
– GetRealTimeClock; Read the real-time clock
34
4 Visualisation function blocks: Visu.lib
35
Visualisation blocks
35
– General
35
– ClearLines; Delete the display lines
35
– ClearScreen; Delete the screen contents
36
– EnableDisplay
Switch the display contents to visible/invisible
36
– GetDisplayInfo
Read the operating state and display type 37
– GetTextAddress; Read the text address 37
– GetTextDBInfo; Read TextDB information 38
– InputValue; Value entry (target value) 38
– SetBacklight; Switch the background lighting on/off 40
– SetContrast; Set the display contrast 41
– SetCursor; Position the cursor 41
– WriteBargraph; Bargraph presentation of an actual value 42
– WriteLine; Write a line
43
– WriteMultiString
Write up to 8 strings of alphanumeric characters
43
– WriteMultiStringTextDB
Write up to 8 strings simultaneously from the text file
44
– WriteMultiValue; Write up to 8 values (actual values)
46
– WriteString; Write a string
47
– WriteStringTextDB; Write string from text file
48
– WriteSysDate; Write date
49
– WriteSysDay; Write weekday
49
– WriteSysTime; Write time
50
– WriteValue; Write (actual) value
50
5 Counter function blocks: counter.lib
(for XIOC-1(2)CNT-100 kHz)
53
Counter function blocks
53
– CounterControl; Enable module inputs/outputs
53
– ReadCounter
Show counter, comparison and target values
54
– WriteCounter
Parameterizing counter, comparison and target values 54
– CounterFlags; Activate functions and interrogate states 55
– XIOC_IncEncoder
Count pulses from incremental encoders and homing
57
2
 10/10 MN05010002Z-EN
Contents
6 Counter elements: Counter_Analog.lib
(for XIOC-2CNT-2AO-NC)
59
XIOC_2CNT2AO_INC; incremental encoder evaluation
59
XIOC_2CNT2AO_ANALOG; analog value output
62
7 Transfer block: CANopen_Utilities.lib
63
Transfer block
63
– SDO_Transfer (XC-100); Transfer parameters
63
8 Data access function blocks for files: XC100_File.lib
65
Description of the blocks
65
Fundamental block handling procedures
65
–FileOpen
65
–FileClose
66
– FileRead
66
– FileWrite
67
– FileDelete
67
– FileRename
68
– FileSetPos
68
– FileGetSize
69
Error codes
69
9 Acyclic file access blocks for PROFIBUS-DP:
xSysNetDPMV1.lib
71
Description of the blocks
71
Fundamental block handling procedures
71
– XDPMV1_READ, XDPMV1_WRITE
71
– Function block assignment (Device number)
72
10 Communication block for Suconet K slaves: SuconetK.lib
73
Communication block
73
– SUCONET K_SLAVE
Communication XC100/200 – Suconet K slave
73
11 Communication block for Suconet K slaves: SuconetK.lib
75
General
75
Description of the function blocks
75
– SuconetK_Master
76
– Meanings of the operands
76
– SuconetK_MSlaveData
77
– SuconetK_MDX2Data for EM4-201-DX2
78
Configuration of Suconet K line
78
Commissioning and operation of the Suconet K line
79
– Function block SuconetK_Master
79
– Diagnostics during operation
80
– Function block SuconetK_MSlaveData
80
– Function block SuconetK_MDX2Data
80
Type definitions of the library
81
– Configuration of a Suconet user
81
– Input : Possible slave types
81
– Input : Possible LE types (for EM4_201_DX2 only)
81
– Output : Information about the address ranges of the
configured slaves
81
– Output : Status bytes for Diag (SuconetK_Master)
81
3
[ Pobierz całość w formacie PDF ]

  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • wolaosowinska.xlx.pl
  •