在使用伺服的定位功能是,通常会有多个不同的定位地址,常用的处理方法是只写一个定位指令,然后把地址数据做成参数,每次要用时先传输定位参数,下面给出调用地址参数的示例01
第01步:建立中间变量放于FB接口如下图,其中,定位地址和速度都是建立的数组,可通过不同的索引来读取相应数据
第02步:地址数据的初始值如图
第03步:编辑的示例程序如下
第04步:定位号为1时的效果
定位号为1时指令处的效果
第05步:定位号为5时的效果
定位号为5时指令处的效果
欧姆龙plc相关型号:
cqm1系列plc:
主机(cpu)
cqm1-cpu11 cqm1-cpu21 cqm1-cpu41
cqm1-cpu42 cqm1-cpu43 cqm1-cpu44
cqm1h-cpu11 cqm1h-cpu21 cqm1h-cpu51
cqm1-pa203 cqm1-pa206 cqm-pd026
各种模块:
cqm1-ad041 cqm1-da021 cqm1-id211
cqm1-id212 cqm1-id213 cqm1-od211
cqm1-od212 cqm1-od213 cqm1-oc221
cqm1-oc222 cqm1-0a221 cqm1-sen01
cqm1-ips01 cqm1-ips02 cqm1-tc001
cqm1-tc101 cqm1-tu001 cqm1-lk501
cqm1-me04k cqm1-me08k cqm1h-plb21
cqm1h-clk21 cqm1h-scb41 cqm1h-mab42
c200h系列plc
主机cpu:
c200h-cpu01 c200h-cpu02 c200h-cpu03
c200h-cpu11 c200h-cpu21 c200h-cpu31
c200hs-cpu01 c200hs-cpu21 c200hs-cpu31
c200he-cpu11 c200he-cpu32 c200he-cpu42
c200hg-cpu33 c200hg-cpu43 c200hg-cpu53
c200hx-cpu34 c200hx-cpu44 c200hg-cpu63
c200hx-cpu65-z c200hx-cpu85-z cs1g-cpu43
cs1h-cpu66 cvm1-cpu21-v2 c200hx-cpu64
标准模块:
c200h-ia221 c200h-ia222 c200h一id211
c200h-id212 c200h-im212 c200hs-int01
c200h-ov001 c200h-id001 c200h-id219
c200h-oc221 c200h-oc222 c200h-oc224
c200h-oc225 c200h-od411 c200h-od211
c200h-od212 c200h-od213 c200h-od214
c200h-od215 c200h-od216 c200h-0d217
c200h-od218 c200h-od219 c200h-1d215
c200h-id501 c200h-od501 c200h-md215
c200h-md501 c200h-md115 c200h-mc221
c200h-ad001 c200h-ad002 c200h-ad003
c200h-da001 c200h-da002 c200h-da003
c200h-da004 c200h-mad01 c200h-ts001
cs1w 系列plc:
cs1w-cn114 cs1w-cn224
cs1w-cn624 cs1w-cn118 cs1w-cn226
cs1w-cn626 cs1w-cn313 cs1w-cn713
cs1w-cn223 cs1w-cn323 cs1w-cn523
cs1w-cn133 cs1w-cn311 cs1w-cn133-b2
cs1w-cn711 cs1w-cn221 cs1w-cn131-b2
cs1w-cn321 cs1w-cn521 cs1w-cn131
cj1w系列plc:
cj1g-cpu42h cj1w-prm21 cj1w-pts51 cj1w-ct021
cj1w-ad041-v1 cj1m-cpu12 cj1w-id201 cj1w-oc211
cj1w-ic101 cj1g-cpu43h cj1w-ii101 cj1w-pa205r
cj1w-prt21 cj1w-od261 cj1w-id211 cj1g-cpu45h
cj1w-md231 cj1w-od211 cj1g-cpu42h cj1g-cpu42
cj1g-cpu43h cj1w-pa202 cj1w-scu41-v1 cj1h-cpu65h
cj1w-suc21 cj1w-scu21 cj1w-etn21 cj1w-nc213
cj1w-nc233 cj1w-od231 cj1w-nc113 cj1h-cpu66h
cj1g-cpu44h cj1w-tc101 cj1m-cpu23 cj1m-cpu11
cj1m-cpu12 cj1w-md261 cj1w-id232 cj1m-cpu11
cj1w-ad081-v1 cj1m-cpu22 cj1w-nc133 cj1w-v600c11
cj1w-tb101 cj1w-drm21 cj1w-sp001 cj1w-da041
cj1w-mad42 cj1w-cpu13 cj1w-nc433 cj1w-ter01
cpm1a系列plc:
cpm1a-10cdt1-a-v1 cpm1a-10cdt1-d-v1
cpm1a-10cdt-a-v1 cpm1a-10cdt-d-v1 cpm1a-20cdr1-a -ch -dlt
cpm1a-20cdr-a-v1 cpm1a-20cdr-d-v1 cpm1a-20cdt1-a-v1
cpm1a-20cdt1-d-v1 cpm1a-20cdt-a-v1 cpm1a-20cdt-d-v1
cpm1a-20edr1 cpm1a-20edt cpm1a-20edt1
cpm1a-30cdr1-a-ch cpm1a-30cdr1-a-ch cpm1a-30cdr-a-v1
cpm1a-30cdr-d-v1 cpm1a-30cdt1-a-v1 cpm1a-30cdt1-d-v1
cpm1a-30cdt-a-v1 cpm1a-30cdt-d-v1 cpm1a-40cdr1-a-ch
cpm1a-40cdr1-a-ch cpm1a-40cdr-a-v1 cpm1a-40cdr-d-v1
cpm1a-40cdt1-a-v1 cpm1a-40cdt1-d-v1 cpm1a-40cdt-a-v1
cpm1a-40cdt-d-v1 cpm1a-8ed cpm1a-8er cpm1a-8et
cpm1a-8et1 cpm1a-ad041 cpm1a-as001 cpm1a-cif12
cpm1a-da001 cpm1a-da002 cpm1a-da041 cpm1a-drt21
cpm1a-mad01 cpm1a-mad02 –ch cpm1a-mad11 cpm1a-srt21
cpm1a-ts001 cpm1a-ts002 cpm1a-ts101 cpm1a-ts101-da
cpm1a-ts102 cpm1-cif01 cpm1-cif11 cpm1-emu01-v1
cpm2a-20cdr-a cpm2a-20cdr-d