Kuhnke Electronics Instruction Manual
Kuhnke Electronics Instruction Manual Kuhnke Electronics Instruction Manual
Function Libraries PROGRAM Init_Interrupt_IO VAR Index0: WORD; Index1: WORD; flag0:BOOL; flag1:BOOL; END_VAR Index0:=INDEXOF(Interrupt_I0); Index1:=INDEXOF(Interrupt_I1); IF IN_00 AND NOT flag0 THEN flag0:=INSTALL_INPUT_IRQ(Index0,0,1); ELSE flag0:=INSTALL_INPUT_IRQ(Index0,0,0); END_IF IF IN_01 AND NOT flag1 THEN flag1:=INSTALL_INPUT_IRQ(Index1,1,3); ELSE flag1:=INSTALL_INPUT_IRQ(Index1,1,0); END_IF 86 E 700 GB
4.4.8 Installing a REF IRQ Module Function Libraries A Ref impulse from Ventura Remote PLC's counter interface generates an interrupt request (IRQ) which can interrupt the processing of the current program and run an IRQ module instead. This requires that running an interrupt module (IRQmod) following reference interrupt is admitted by the project parameter settings made using the PLC Configuration Editor. To install a program module as a REF-IRQ module you must run the following code to identify the module: Index := INDEXOF (module name); Afterwards, run the following function in order to set up the error module: REGIT_REFIRQ ( Index ); After successful completion, the function returns TRUE. FUNCTION REGIT_REFIRQ: BOOL VAR_INPUT POU_ID: WORD; END_VAR VAR END_VAR 87
- Page 35 and 36: 3.4 Inputs and Outputs 3.4.1 Digita
- Page 37 and 38: 3.4.2 Digital Combi I/Os Hardware V
- Page 39 and 40: 3.4.3 Analogue Inputs Hardware Vent
- Page 41 and 42: 3.5 A, B, Ref Counter Hardware Vent
- Page 43 and 44: 3.6.2 PROFIBUS Hardware Ventura Rem
- Page 45 and 46: 3.7 Expansion Modules Ventura Remot
- Page 47 and 48: 3.8.2 Mode Selector mode selector H
- Page 49 and 50: 3.8.3.1 RUN 3.8.3.2 Stop 3.8.3.3 Ex
- Page 51 and 52: 3.9 Status and Failure Indication "
- Page 53 and 54: Installation 4 PLC Functions of Ven
- Page 55 and 56: 4.2 Writing CoDeSys Programs Online
- Page 57 and 58: 4.2.2 CAN: Online CAN Function Libr
- Page 59 and 60: 4.3.1 Operating System Function Lib
- Page 61 and 62: 4.3.3 Task Configuration 4.3.3.1 PL
- Page 63 and 64: 4.3.3.2 The Task Configurator 4.3.3
- Page 65 and 66: 4.3.4 PLC Configuration Function Li
- Page 67 and 68: Function Libraries DI16/DO16". Repe
- Page 69 and 70: 4.3.6 The Flash File System Functio
- Page 71 and 72: 4.4.1 Installing a Thread Function
- Page 73 and 74: Thread usage Function Libraries A t
- Page 75 and 76: 4.4.2 Installing / Uninstalling a T
- Page 77 and 78: To uninstall a timer task: Function
- Page 79 and 80: 4.4.3 Enabling / Disabling the Outp
- Page 81 and 82: 4.4.5 Direct Write of Local Outputs
- Page 83 and 84: FUNCTION INSTALL_ERROR_IRQ : BOOL V
- Page 85: Function Libraries INSTALL_INPUT_IR
- Page 89 and 90: 4.4.10 Setting up the Watchdog Func
- Page 91 and 92: 4.5 Library MMC.LIB Function Librar
- Page 93 and 94: 4.5.2 Registering with the File Sys
- Page 95 and 96: 4.5.4 Copying Files Function Librar
- Page 97 and 98: 4.5.6 Determining the Free MMC Spac
- Page 99 and 100: 4.5.8 Moving a File Function Librar
- Page 101 and 102: 4.5.9 Opening a File Function Libra
- Page 103 and 104: 4.5.10 Reading from a File Function
- Page 105 and 106: 4.5.12 Setting the Edit Bookmark of
- Page 107 and 108: 4.5.14 Initialising the File System
- Page 109 and 110: Function Libraries FUNCTION_BLOCK M
- Page 111 and 112: � Use 'start' to repeatedly run t
- Page 113 and 114: 4.6.4 Online Reset (cold) 4.6.5 Res
- Page 115 and 116: 4.7.2 Variables with Set Addresses
- Page 117 and 118: 4.8 Extraremanent Data 4.8.1 Remane
- Page 119 and 120: Remanent Data If an extraremanent m
- Page 121 and 122: TYPE Extrarema_02: STRUCT END_STRUC
- Page 123 and 124: Start_OK := CheckXREMDATA(Clear); I
- Page 125 and 126: 5 Software Software Read this secti
- Page 127 and 128: Internal combi I/Os %IX0.0-%IX0.3 a
- Page 129 and 130: Internal I/Os AI_x and AO_x I/O Var
- Page 131 and 132: Software If an "Input IRQ module" h
- Page 133 and 134: 5.3.3 Functions of Internal Outputs
- Page 135 and 136: Software Value Frequency Value Freq
Function Libraries<br />
PROGRAM Init_Interrupt_IO<br />
VAR<br />
Index0: WORD;<br />
Index1: WORD;<br />
flag0:BOOL;<br />
flag1:BOOL;<br />
END_VAR<br />
Index0:=INDEXOF(Interrupt_I0);<br />
Index1:=INDEXOF(Interrupt_I1);<br />
IF IN_00 AND NOT flag0 THEN<br />
flag0:=INSTALL_INPUT_IRQ(Index0,0,1);<br />
ELSE<br />
flag0:=INSTALL_INPUT_IRQ(Index0,0,0);<br />
END_IF<br />
IF IN_01 AND NOT flag1 THEN<br />
flag1:=INSTALL_INPUT_IRQ(Index1,1,3);<br />
ELSE<br />
flag1:=INSTALL_INPUT_IRQ(Index1,1,0);<br />
END_IF<br />
86 E 700 GB