-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathOB122.SCL
More file actions
39 lines (33 loc) · 1.56 KB
/
Copy pathOB122.SCL
File metadata and controls
39 lines (33 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
ORGANIZATION_BLOCK OB122
TITLE = 'Âûçûâàåòñÿ åñëè âûòàñêèâàåì ìîäóëè: AO.'
AUTHOR : VA
FAMILY : LIB_PLC
VERSION : '2.1'
VAR_TEMP
OB122_EV_CLASS :BYTE ; // 16#29, Event class 2, Entering event state, Internal fault event
OB122_SW_FLT :BYTE ; // 16#XX Software error code
OB122_PRIORITY :BYTE ; // Priority of OB Execution
OB122_OB_NUMBR :BYTE ; // 122 (Organization block 122, OB122)
OB122_BLK_TYPE :BYTE ; // 16#88/8C/8E Type of block fault occured in
OB122_MEM_AREA :BYTE ; // Memory area where access error occured
OB122_MEM_ADDR :WORD ; // Memory address where access error occured
OB122_BLK_NUM :WORD ; // Block number in which error occured
OB122_PRG_ADDR :WORD ; // Program address where error occured
OB122_DATE_TIME :DATE_AND_TIME; // Date and time OB1 started
END_VAR
BEGIN
"DbDebug".OB122_CNT_ERR := "DbDebug".OB122_CNT_ERR + 1; // Ñ÷åò÷èê âûçîâîâ îáðàáîò÷èêà îøèáîê OB122.
// @COPYLEFT ALL WRONGS RESERVED :)
// Author: VA
// Contacts: DIY.PLC.314@gmail.com
// Date start LIB_PLC: 2014
// License: GNU GPL-2.0-or-later
// https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
// https://www.youtube.com/watch?v=n1F_MfLRlX0
// https://www.youtube.com/@DIY_PLC
// https://github.com/DIYPLC/LIB_PLC
// https://oshwlab.com/diy.plc.314/PLC_HW1_SW1
// https://3dtoday.ru/3d-models/mechanical-parts/body/korpus-na-din-reiku
// https://t.me/DIY_PLC
// https://drive.google.com/drive/folders/16GDX0i07rwDrl_oPzL-lQAqMiAz3ouJV?usp=sharing
END_ORGANIZATION_BLOCK