除特殊情況外,PAC系統(tǒng)用戶自定義程序的執(zhí)行遵循IEC 61131-3標(biāo)準(zhǔn)定義一個(gè)函數(shù)塊要在編程軟件中創(chuàng)建一-個(gè)函數(shù)塊,首先在程序塊文件夾中創(chuàng)建一個(gè)LD或ST塊。在塊的特性(Properties)欄中,選擇函數(shù)塊。要為函數(shù)塊定義實(shí)例數(shù)據(jù),選擇塊屬性的參數(shù)欄。輸入輸出參數(shù)定義方法與參數(shù)化模塊的定義方式相同。下面的例子中,定義了3個(gè)內(nèi)部成員變量:temp,speed和modelno.
PCI354-1022-38 02088-019PCI354-1022-38 02088-019SIEMENS A5E00159514 USPP A5E00159514
CUTLER HAMMER 7585T-8XE USPP 7585T8XE
MITSUBISHI A985GOT-TBD USPP A985GOTTBD
RAYTHEON B34201-00-03-0 USPP B3420100030
ALLEN BRADLEY 1772-M16 USPP 1772M16
SIEMENS 6DS1717-8RR NSFP 6DS17178RR
INDRAMAT KDS1.1-150-300-?W1 USPP KDS11150300W1
AMK B569CB USPP B569CB
GE FANUC IC3600SPRB1 USPP IC3600SPRB1
RELIANCE ELECTRIC 603515-5A USPP 6035155A
FANUC A16B-2100-0110 USPP A16B21000110
FANUC A16B-1211-0771 USPP A16B12110771
FORNEY 35400901 NSFP 35400901
MODICON AS-9370-001 USPP AS9370001
HONEYWELL 51304487-100 USPP 51304487100
ALLEN BRADLEY 1772-LN3 NSFP 1772LN3
SIEMENS R15C02A185 USPP R15C02A185
WESTINGHOUSE NB2800P-400 USPP NB2800P400
HEIDENHAIN CORP 284-807-30 USPP 28480730