欧姆龙CP1H485通信的PLC程序怎么写
时间: 2023-12-01 12:02:30 浏览: 115
C#和欧姆龙PLC通信程序源代码
5星 · 资源好评率100%
欧姆龙 CP1H PLC 的通讯程序可以使用 FINS 协议或 Modbus 协议进行编写。以下是使用 FINS 协议进行通讯的 PLC 程序示例:
```
ORG 0
N1000 D100
MOV #0 D200
MOV #2 D201
MOV #0 D202
MOV #0 D203
MOV #9600 D204
MOV #1 D205
MOV #0 D206
MOV #0 D207
MOV #1 D208
MOV #0 D209
MOV #0 D210
MOV #0 D211
MOV #0 D212
MOV #0 D213
MOV #0 D214
MOV #0 D215
MOV #0 D216
MOV #0 D217
MOV #0 D218
MOV #0 D219
MOV #0 D220
MOV #0 D221
MOV #0 D222
MOV #0 D223
MOV #0 D224
MOV #0 D225
MOV #0 D226
MOV #0 D227
MOV #0 D228
MOV #0 D229
MOV #0 D230
MOV #0 D231
MOV #0 D232
MOV #0 D233
MOV #0 D234
MOV #0 D235
MOV #0 D236
MOV #0 D237
MOV #0 D238
MOV #0 D239
MOV #0 D240
MOV #0 D241
MOV #0 D242
MOV #0 D243
MOV #0 D244
MOV #0 D245
MOV #0 D246
MOV #0 D247
MOV #0 D248
MOV #0 D249
MOV #0 D250
MOV #0 D251
MOV #0 D252
MOV #0 D253
MOV #0 D254
MOV #0 D255
MAIN:
FSET 0000H
LBL 1
FSET 0000H
LBL 2
FSET 0000H
LBL 3
FSET 0000H
LBL 4
FSET 0000H
LBL 5
FSET 0000H
LBL 6
FSET 0000H
LBL 7
FSET 0000H
LBL 8
FSET 0000H
LBL 9
FSET 0000H
LBL 10
FSET 0000H
LBL 11
FSET 0000H
LBL 12
FSET 0000H
LBL 13
FSET 0000H
LBL 14
FSET 0000H
LBL 15
FSET 0000H
LBL 16
FSET 0000H
LBL 17
FSET 0000H
LBL 18
FSET 0000H
LBL 19
FSET 0000H
LBL 20
FSET 0000H
LBL 21
FSET 0000H
LBL 22
FSET 0000H
LBL 23
FSET 0000H
LBL 24
FSET 0000H
LBL 25
FSET 0000H
LBL 26
FSET 0000H
LBL 27
FSET 0000H
LBL 28
FSET 0000H
LBL 29
FSET 0000H
LBL 30
FSET 0000H
LBL 31
FSET 0000H
LBL 32
FSET 0000H
LBL 33
FSET 0000H
LBL 34
FSET 0000H
LBL 35
FSET 0000H
LBL 36
FSET 0000H
LBL 37
FSET 0000H
LBL 38
FSET 0000H
LBL 39
FSET 0000H
LBL 40
FSET 0000H
LBL 41
FSET 0000H
LBL 42
FSET 0000H
LBL 43
FSET 0000H
LBL 44
FSET 0000H
LBL 45
FSET 0000H
LBL 46
FSET 0000H
LBL 47
FSET 0000H
LBL 48
FSET 0000H
LBL 49
FSET 0000H
LBL 50
FSET 0000H
LBL 51
FSET 0000H
LBL 52
FSET 0000H
LBL 53
FSET 0000H
LBL 54
FSET 0000H
LBL 55
FSET 0000H
LBL 56
FSET 0000H
LBL 57
FSET 0000H
LBL 58
FSET 0000H
LBL 59
FSET 0000H
LBL 60
FSET 0000H
LBL 61
FSET 0000H
LBL 62
FSET 0000H
LBL 63
FSET 0000H
LBL 64
FSET 0000H
LBL 65
FSET 0000H
LBL 66
FSET 0000H
LBL 67
FSET 0000H
LBL 68
FSET 0000H
LBL 69
FSET 0000H
LBL 70
FSET 0000H
LBL 71
FSET 0000H
LBL 72
FSET 0000H
LBL 73
FSET 0000H
LBL 74
FSET 0000H
LBL 75
FSET 0000H
LBL 76
FSET 0000H
LBL 77
FSET 0000H
LBL 78
FSET 0000H
LBL 79
FSET 0000H
LBL 80
FSET 0000H
LBL 81
FSET 0000H
LBL 82
FSET 0000H
LBL 83
FSET 0000H
LBL 84
FSET 0000H
LBL 85
FSET 0000H
LBL 86
FSET 0000H
LBL 87
FSET 0000H
LBL 88
FSET 0000H
LBL 89
FSET 0000H
LBL 90
FSET 0000H
LBL 91
FSET 0000H
LBL 92
FSET 0000H
LBL 93
FSET 0000H
LBL 94
FSET 0000H
LBL 95
FSET 0000H
LBL 96
FSET 0000H
LBL 97
FSET 0000H
LBL 98
FSET 0000H
LBL 99
FSET 0000H
LBL 100
FSET 0000H
LBL 101
FSET 0000H
LBL 102
FSET 0000H
LBL 103
FSET 0000H
LBL 104
FSET 0000H
LBL 105
FSET 0000H
LBL 106
FSET 0000H
LBL 107
FSET 0000H
LBL 108
FSET 0000H
LBL 109
FSET 0000H
LBL 110
FSET 0000H
LBL 111
FSET 0000H
LBL 112
FSET 0000H
LBL 113
FSET 0000H
LBL 114
FSET 0000H
LBL 115
FSET 0000H
LBL 116
FSET 0000H
LBL 117
FSET 0000H
LBL 118
FSET 0000H
LBL 119
FSET 0000H
LBL 120
FSET 0000H
LBL 121
FSET 0000H
LBL 122
FSET 0000H
LBL 123
FSET 0000H
LBL 124
FSET 0000H
LBL 125
FSET 0000H
LBL 126
FSET 0000H
LBL 127
FSET 0000H
LBL 128
FSET 0000H
LBL 129
FSET 0000H
LBL 130
FSET 0000H
LBL 131
FSET 0000H
LBL 132
FSET 0000H
LBL 133
FSET 0000H
LBL 134
FSET 0000H
LBL 135
FSET 0000H
LBL 136
FSET 0000H
LBL 137
FSET 0000H
LBL 138
FSET 0000H
LBL 139
FSET 0000H
LBL 140
FSET 0000H
LBL 141
FSET 0000H
LBL 142
FSET 0000H
LBL 143
FSET 0000H
LBL 144
FSET 0000H
LBL 145
FSET 0000H
LBL 146
FSET 0000H
LBL 147
FSET 0000H
LBL 148
FSET 0000H
LBL 149
FSET 0000H
LBL 150
FSET 0000H
LBL 151
FSET 0000H
LBL 152
FSET 0000H
LBL 153
FSET 0000H
LBL 154
FSET 0000H
LBL 155
FSET 0000H
LBL 156
FSET 0000H
LBL 157
FSET 0000H
LBL 158
FSET 0000H
LBL 159
FSET 0000H
LBL 160
FSET 0000H
LBL 161
FSET 0000H
LBL 162
FSET 0000H
LBL 163
FSET 0000H
LBL 164
FSET 0000H
LBL 165
FSET 0000H
LBL 166
FSET 0000H
LBL 167
FSET 0000H
LBL 168
FSET 0000H
LBL 169
FSET 0000H
LBL 170
FSET 0000H
LBL 171
FSET 0000H
LBL 172
F
阅读全文