工控编程吧 gkbc8 com
西门子PCS 7 CFC基材块 编程操作手册 中文超清版
文档手册目录或截图为:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
目录
1 块参数 EN、ENO、SAMPLE_T......................................................................................................11
2 在 S7-300 CPU 上启动 ...................................................................................................................13
3 CFC 块 ...........................................................................................................................................15
4 数据类型为 BOOL 的逻辑块............................................................................................................19
4.1 BIT_LGC ............................................................................................................................ 19
4.2 AND: AND 运算............................................................................................................... 20
4.3 OR: OR 运算.................................................................................................................... 21
4.4 XOR: 异或运算................................................................................................................. 22
4.5 NAND: NAND 运算............................................................................................................. 23
4.6 NOR: NOR 运算............................................................................................................... 24
4.7 NOT: NOT 运算............................................................................................................... 25
5 数据类型为 WORD 和 DWORD 的逻辑块 .......................................................................................27
5.1 WRD_LGC ......................................................................................................................... 27
5.2 WAND_W: 字 AND 运算.................................................................................................. 28
5.3 WOR_W: 字 OR 运算....................................................................................................... 29
5.4 WXOR_W: 字异或运算 .................................................................................................... 30
5.5 WNAND_W:字 AND 运算................................................................................................. 31
5.6 WNOR_W: 字 NOR 运算 ................................................................................................. 32
5.7 WNOT_W: 字 NOT 运算.................................................................................................. 33
5.8 WAND_DW: 双字 AND 运算............................................................................................ 34
5.9 WOR_DW: 双字 OR 运算 ................................................................................................ 34
5.10 WXOR_DW: 双字异或运算.............................................................................................. 35
5.11 WNAND_DW: 双字 NAND 运算....................................................................................... 35
5.12 WNOR_DW: 双字 NOR 运算........................................................................................... 36
5.13 WNOT_DW: 双字 NOT 运算............................................................................................ 36
6 用于比较两个相同类型输入值的块..................................................................................................37
6.1 COMPARE..........................................................................................................................37
6.2 CMP_I: INT 值比较器........................................................................................................38
6.3 CMP_DI: DINT 值比较器 ..................................................................................................39
6.4 CMP_R: REAL 值比较器 ..................................................................................................40
6.5 CMP_T: TIME 值比较器....................................................................................................41
7 用于转换数据类型的块....................................................................................................................43
7.1 CONVERT ..........................................................................................................................43
7.2 BY_DW ...............................................................................................................................45
7.3 BY_W..................................................................................................................................45
7.4 DI_DW.................................................................................................................................46
7.5 DI_I......................................................................................................................................46
7.6 DI_R....................................................................................................................................47
7.7 DW_DI.................................................................................................................................47
7.8 DW_R..................................................................................................................................48
7.9 DW_W.................................................................................................................................49
7.10 I_DI......................................................................................................................................49
7.11 I_DW...................................................................................................................................50
7.12 I_R.......................................................................................................................................50
7.13 I_W......................................................................................................................................51
7.14 R_DI ....................................................................................................................................51
7.15 R_DW..................................................................................................................................52
7.16 R_I.......................................................................................................................................53
7.17 W_BY..................................................................................................................................53
7.18 W_DW.................................................................................................................................54
7.19 W_I ......................................................................................................................................54
7.20 BO_BY ................................................................................................................................55
7.21 BO_W................................................................................................................................. 56
7.22 BO_DW.............................................................................................................................. 57
7.23 BY_BO ............................................................................................................................... 58
7.24 W_BO................................................................................................................................. 59
7.25 DW_BO.............................................................................................................................. 60
8 数据类型为 REAL 的算术块 ............................................................................................................61
8.1 MATH_FP........................................................................................................................... 61
8.2 ADD_R: REAL 值加运算.................................................................................................. 63
8.3 SUB_R: REAL 值减运算.................................................................................................. 64
8.4 MUL_R: REAL 值乘运算.................................................................................................. 65
8.5 DIV_R: REAL 值除运算.................................................................................................... 66
8.6 MAXn_R: 求 REAL 值的最大值........................................................................................ 67
8.7 MINn_R: 求 REAL 值的最小值......................................................................................... 68
8.8 ABS_R: REAL 值的绝对值............................................................................................... 69
8.9 SQRT: 平方根.................................................................................................................. 69
8.10 EXP: 指数函数................................................................................................................. 70
8.11 POW10: 底数为 10 的幂函数........................................................................................... 71
8.12 LN: 自然对数.................................................................................................................... 72
8.13 LOG10: 以 10 为底的对数................................................................................................ 73
8.14 SIN: 正弦函数.................................................................................................................. 73
8.15 COS: 余弦函数................................................................................................................. 74
8.16 TAN: 正切函数................................................................................................................. 74
8.17 ASIN: 反正弦函数............................................................................................................ 75
8.18 ACOS: 反余弦函数........................................................................................................... 75
8.19 ATAN: 反正切函数........................................................................................................... 76
8.20 NEG_R: REAL 值取反..................................................................................................... 76
8.21 LIM_R: REAL 值限幅器.................................................................................................... 77
8.22 EPS_R: 精确近似值......................................................................................................... 78
8.23 CADD_R: REAL 值的可控加法器..................................................................................... 79
8.24 POWXY: 常规幂函数....................................................................................................... 80
8.25 SAMP_AVE: 浮点数平均值.............................................................................................. 81 9 数据类型为 INT 和 DINT 的算术块..................................................................................................83
9.1 MATH_INT..........................................................................................................................83
9.2 ADD_I: INT 值加运算........................................................................................................85
9.3 SUB_I: INT 值减运算........................................................................................................86
9.4 MUL_I: INT 值乘运算........................................................................................................87
9.5 DIV_I: INT 值除运算..........................................................................................................88
9.6 MOD_I: INT 值的取模函数................................................................................................89
9.7 MAXn_I: INT 值的最大值..................................................................................................90
9.8 MINn_I: INT 值的最小值 ...................................................................................................91
9.9 INT 值的 ABS_I 绝对值 .......................................................................................................92
9.10 NEG_I: INT 值取反...........................................................................................................92
9.11 LIM_I: INT 值限幅器..........................................................................................................93
9.12 EPS_I: INT 值的精确近似值..............................................................................................94
9.13 CADD_I: INT 值的可控加法器...........................................................................................95
9.14 ADD_DI: DINT 值加运算...................................................................................................96
9.15 SUB_DI: DINT 值减运算...................................................................................................97
9.16 MUL_DI: DINT 的乘运算...................................................................................................98
9.17 DIV_DI: DINT 值除运算 ....................................................................................................99
9.18 MOD_DI: DINT 值的取模函数.........................................................................................100
9.19 MAXn_DI: DINT 值的最大值...........................................................................................101
9.20 MINn_DI: DINT 值的最小值............................................................................................102
9.21 ABS_DI: DINT 值的绝对值..............................................................................................103
9.22 NEG_DI: DINT 值取反....................................................................................................104
9.23 LIM_DI: DINT 值限幅器 ..................................................................................................105
9.24 EPS_DI: DINT 值的精确近似值.......................................................................................106
9.25 CADD_DI: DINT 值的可控加法器....................................................................................107 10 触发器块.......................................................................................................................................109
10.1 FLIPFLOP........................................................................................................................ 109
10.2 JK_FF: JK 触发器.......................................................................................................... 110
10.3 RS_FF: RS 触发器,复位优先....................................................................................... 111
10.4 SR_FF: SR 触发器,置位优先....................................................................................... 112
11 移位块...........................................................................................................................................113
11.1 SHIFT............................................................................................................................... 113
11.2 SHL_W: WORD 左移..................................................................................................... 114
11.3 SHL_DW: DWORD 左移................................................................................................ 114
11.4 SHR_W: WORD 右移 .................................................................................................... 115
11.5 SHR_DW: DWORD 右移............................................................................................... 115
11.6 ROL_W: WORD 循环左移 ............................................................................................. 116
11.7 ROL_DW: DWORD 循环左移........................................................................................ 116
11.8 ROR_W: WORD 循环右移............................................................................................. 117
11.9 ROR_DW: DWORD 循环右移........................................................................................ 117
12 多路复用器块................................................................................................................................119
12.1 MULTIPLX........................................................................................................................ 119
12.2 MUXn_I: 用于 INT 值的 n 选 1 多路复用器 .................................................................... 120
12.3 MUXn_DI: 用于 DINT 值的 n 选 1 多路复用器............................................................... 121
12.4 MUXn_R: 用于 REAL 值的 n 选 1 多路复用器............................................................... 122
12.5 MUXn_BO: 用于 BOOL 值的 n 选 1 多路复用器............................................................ 123
12.6 SEL_BO: 用于 BOOL 值的 2 选 1 多路复用器............................................................... 124
12.7 SEL_R: 用于 REAL 值的 2 选 1 多路复用器 .................................................................. 124
13 计数器块.......................................................................................................................................125
13.1 COUNTER ....................................................................................................................... 125
13.2 CTU: 加计数器............................................................................................................... 126
13.3 CTD: 减计数器............................................................................................................... 128
13.4 CTUD: 加/减计数器........................................................................................................ 130 14 用于生成或处理脉冲的块..............................................................................................................133
14.1 PULSE..............................................................................................................................133
14.2 TIMER_P: 脉冲发生器....................................................................................................134
14.3 R_TRIG: 检测上升沿.......................................................................................................137
14.4 F_TRIG: 检测下降沿.......................................................................................................138
14.5 AFP: 时钟.......................................................................................................................139
15 用于查询或处理时间间隔和时基的块............................................................................................. 141
15.1 TIME .................................................................................................................................141
15.2 TIME: 测量执行时间 .......................................................................................................142
15.3 TIME_BEG: 输出当前的日时钟.......................................................................................142
15.4 TIME_END: 比较输入时间与实际时间............................................................................143
16 控制块.......................................................................................................................................... 145
16.1 CONTROL ........................................................................................................................145
16.2 CONT_C ...........................................................................................................................146
16.2.1 CONT_C: 连续作用控制器..............................................................................................146
16.2.2 CONT_C:方框图.............................................................................................................152
16.3 CONT_S............................................................................................................................153
16.3.1 CONT_S:步进控制器......................................................................................................153
16.3.2 CONT_S:方框图.............................................................................................................158
16.4 PULSEGEN ......................................................................................................................159
16.4.1 PULSEGEN: 用于 PID 控制器的脉宽调制......................................................................159
16.4.2 PULSEGEN:方框图........................................................................................................165
16.4.3 PULSEGEN: 三位控制....................................................................................................166
16.4.4 PULSEGEN:三位控制,非对称......................................................................................168
16.4.5 PULSEGEN: 二位控制....................................................................................................169
16.4.6 PULSEGEN: 二位控制或三位控制中的手动操作............................................................170 17 系统功能块 (SFB).........................................................................................................................171
17.1 EVENT: 启动优先级....................................................................................................... 171
17.2 DELAY ............................................................................................................................. 173
17.3 DELAY: 延迟启动事件 ................................................................................................... 174
17.4 EDELAY: 被延迟启动事件的启用信号............................................................................ 175
17.5 DISCARD: 放弃所有出现的启动事件............................................................................. 176
17.6 EDISCARD: 所有新启动事件的启用信号....................................................................... 177
17.7 LASTERR: 确定 DELAY、EDELAY、DISCARD、EDISCARD 和 P_REASON 中的
错误代码........................................................................................................................... 178
17.8 SYSTIME: 确定系统时间 ............................................................................................... 179
17.9 P_REASON: 确定过程中断的原因................................................................................. 180
17.10 FRC_CFC:内部块.......................................................................................................... 180
18 用于 AS 范围连接的块 ..................................................................................................................181
18.1 IK_STATE ........................................................................................................................ 181
18.2 IK_MANAG....................................................................................................................... 184
18.3 IK_SEND.......................................................................................................................... 184
18.4 IK_RCV ............................................................................................................................ 185
18.5 IK_CP_OU........................................................................................................................ 185
18.6 IK_CP_IN.......................................................................................................................... 186
18.7 IK_ALARM........................................................................................................................ 186
19 附录..............................................................................................................................................187
19.1 手动值处理....................................................................................................................... 187
19.2 脉宽调制........................................................................................................................... 187
19.3 过程变量分支.................................................................................................................... 188
19.4 调节值双极性范围的特性.............................................................
..................................... 188
19.5 调节值单极性范围的特性.................................................................................................. 189
19.6 PI 步算法.......................................................................................................................... 189
19.7 PID 算法........................................................................................................................... 189
19.8 错误信号........................................................................................................................... 190
19.9 设定值分支....................................................................................................................... 190
19.10 调节值处理....................................................................................................................... 190 19.11 干扰变量输入.....................................................................................................................190
19.12 三位控制器的对称特性......................................................................................................191
19.13 三位控制器的非对称特性...................................................................................................192
索引.............................................................................................................................................. 193
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
更多目录内容,请 免费 下载 观看;
说明:所有资源,解压密码一律为工控编程吧网址 gkbc8 com;
下载地址为: (为增加互动交流,回复后可免费下载)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
游客,为过滤非法行为,全站隐藏资源仅对充值会员开放 进入升级
|