6GK 443-5FX01-0XE0
6GK 443-5FX01-0XE0
怎樣讀和寫S7-214的實(shí)時(shí)時(shí)鐘?
下面這個(gè)程序示例涉及到關(guān)于實(shí)時(shí)時(shí)鐘的兩種特殊指令:讀和寫日期及時(shí)鐘時(shí)間。為了進(jìn)行這些操作,需要有如下結(jié)構(gòu)的8字節(jié)緩沖區(qū):
為了讀或?qū)懛奖悖@些數(shù)據(jù)用BCD碼存儲。當(dāng)操作開關(guān)10.0為1時(shí),就將預(yù)定日期和時(shí)間寫入實(shí)際時(shí)鐘。為了顯示當(dāng)前的秒值,將其值拷貝到輸出字節(jié)QB0。當(dāng)10.1=1時(shí),則用BCD碼顯示;當(dāng)10.1=0時(shí),則用二進(jìn)制碼顯示。
例程:
程序框圖
Allen Bradley 1785-TBS
Allen Bradley 1785-TR10B2
Allen Bradley 1785-TR10B5
Allen Bradley 1785-TR10BF
Allen Bradley 1785-TR10BT
Allen Bradley 1785-V30B
Allen Bradley 1785-V40B
Allen Bradley 1785-V40L
Allen Bradley 1785-V80B
osch Rexroth VAM42.1-PB-NF-AB-TB-NN-EK-1608-D1
Perma Star S60 SF02
Siemens 6SN1118-0DH21-0AA0
Siemens 6ES5308-3UA12
Siemens 6GK7443-1GX20-0XE0
Sonderpreis Siemens 6ES7972-0AB01-0XA0
Siemens 1FK7040-5AK71-1EH3
6ES7952-1AL00-0AA0
emecanique XCS A713 071899
Murr MVK-I DO8 55336
Siemens 6ES7414-3XJ00-0AB0
Siemens 6FX1111-0AQ02
LEUZE VBT-5-35,4000
Siemens 6ES7647-8AE30-4AA1
Siemens 3RG7845-6DP01
IFM effector G15001
IFM IG5938 IGA3008-BPKG/US
Siemens 6ES5470-4UA13
6ES7405-0KA01-0AA0
Phoenix Contact 2725480
IFM IG5495 IGB3005-BPKG/US
Festo ADNM-40-A-P-A-40Z1-110Z2
ifm electronic LI5141
Festo HNC-125 174375
Festo VSVA-B-B52-H-A1-1R5L
Indramat NAM 1.2-08
Indramat NAM 1.3-15
Siemens 6SL3210-1KE21-7AP1