iFIX 20个经典问题Word文档下载推荐.docx

上传人:b****1 文档编号:3588799 上传时间:2023-05-02 格式:DOCX 页数:21 大小:25.25KB
下载 相关 举报
iFIX 20个经典问题Word文档下载推荐.docx_第1页
第1页 / 共21页
iFIX 20个经典问题Word文档下载推荐.docx_第2页
第2页 / 共21页
iFIX 20个经典问题Word文档下载推荐.docx_第3页
第3页 / 共21页
iFIX 20个经典问题Word文档下载推荐.docx_第4页
第4页 / 共21页
iFIX 20个经典问题Word文档下载推荐.docx_第5页
第5页 / 共21页
iFIX 20个经典问题Word文档下载推荐.docx_第6页
第6页 / 共21页
iFIX 20个经典问题Word文档下载推荐.docx_第7页
第7页 / 共21页
iFIX 20个经典问题Word文档下载推荐.docx_第8页
第8页 / 共21页
iFIX 20个经典问题Word文档下载推荐.docx_第9页
第9页 / 共21页
iFIX 20个经典问题Word文档下载推荐.docx_第10页
第10页 / 共21页
iFIX 20个经典问题Word文档下载推荐.docx_第11页
第11页 / 共21页
iFIX 20个经典问题Word文档下载推荐.docx_第12页
第12页 / 共21页
iFIX 20个经典问题Word文档下载推荐.docx_第13页
第13页 / 共21页
iFIX 20个经典问题Word文档下载推荐.docx_第14页
第14页 / 共21页
iFIX 20个经典问题Word文档下载推荐.docx_第15页
第15页 / 共21页
iFIX 20个经典问题Word文档下载推荐.docx_第16页
第16页 / 共21页
iFIX 20个经典问题Word文档下载推荐.docx_第17页
第17页 / 共21页
iFIX 20个经典问题Word文档下载推荐.docx_第18页
第18页 / 共21页
iFIX 20个经典问题Word文档下载推荐.docx_第19页
第19页 / 共21页
iFIX 20个经典问题Word文档下载推荐.docx_第20页
第20页 / 共21页
亲,该文档总共21页,到这儿已超出免费预览范围,如果喜欢就下载吧!
下载资源
资源描述

iFIX 20个经典问题Word文档下载推荐.docx

《iFIX 20个经典问题Word文档下载推荐.docx》由会员分享,可在线阅读,更多相关《iFIX 20个经典问题Word文档下载推荐.docx(21页珍藏版)》请在冰点文库上搜索。

iFIX 20个经典问题Word文档下载推荐.docx

shown 

below:

-

Resolution

Declare 

Function 

TurnOnSqlTask 

Lib 

"

missionvba"

(ByVal 

cmd$) 

As 

Long

'

Turns 

on 

task. 

cmd$ 

parameter 

is 

command 

line 

passed 

task

Return 

success. 

Current 

logged 

in 

user 

must 

have 

security 

rights 

turn

on/off 

SAC. 

If 

non-zero 

error 

code 

returned, 

you 

can 

use 

err2str

utility 

fix 

base 

directory 

translate 

string

TurnOffSqlTask 

() 

off 

must

turn 

returned,

err2str 

PauseAlarmODBC 

Pauses 

AlarmODBC 

does 

NOT

rights.

This 

will 

execute 

regardless 

Allow 

Operator 

Pause 

Alarm 

Logging"

Setting 

found 

iFIX 

Service 

Configurator 

System 

Configuration

Utility.

Private 

ContinueAlarmODBC 

Resumes 

All 

these 

functions 

block 

until 

request 

completed.

2:

iFIX如何使用vba开启和停止基于时间和事件的调度?

Description:

solution 

shows 

how 

time-based 

event-based 

schedule

running 

background.

Resolution:

STOP 

START 

EVENT 

BASED 

SCHEDULE

To 

Start:

Sub 

CommandButton1_Click()

Dim 

Var1 

Object

Var2 

Set 

GetObject(, 

FixBackGroundServer.Application"

Var1.System.FindObject("

SchedTest1.FIXEvent1"

Var2.StartEvent

End 

Sub

Stop:

Var2.StopEvent

TIME 

Stop 

TimerObject:

GetObject 

(,"

Sched1.Timer1"

Var2.TimerEnabled 

False

Start 

CommandButton2_Click()

sched.Timer1"

True

Var2.StartTimer

3:

iFIX如何使用vba进行网络打印机打印?

following 

an 

example 

printing 

Excel 

Document 

Network 

Printer 

printer 

other 

than 

the

default 

machine.

objXL 

myDoc 

CreateObject("

Excel.Application"

objXL.Workbooks.Open("

C:

\testfile.xls"

 

True) 

myDoc.Printout 

copies:

=1, 

preview:

=False, 

ActivePrinter:

="

\\SERVER\PRINTER"

printtofile:

collate:

=True 

myDoc.Close

Nothing

Nothing 

References

script 

background 

schedule 

with 

FixBackgroundServer 

configured 

run 

Service, 

Fix

service 

under 

account 

that 

has 

printers 

defined. 

See 

KnowledgeBase 

Article 

i013417 

more

information 

configuration.

Printout 

document 

types 

(Word, 

PowerPoint, 

etc), 

however 

different 

syntax

required, 

refer 

examples.

4:

iFIX报警状态代码以及意义?

FIX 

displays 

alarm 

status 

codes 

each 

Summary 

Link. 

What 

meaning 

codes?

Priority 

-->

Type 

COMM 

Communication 

Error 

("

BAD"

value)

OCD 

Open 

circuit 

detected

OVER 

Over 

Range

UNDER 

Under 

ERROR 

Any 

Statistical 

Data 

alarm

CFN 

Change 

from 

normal 

(digital 

blocks 

only)

COS 

State 

HIHI 

Block 

state

LOLO 

RATE 

Value 

exceeds 

rate-of-change 

setting

HI 

LO 

DEV 

Deviation 

Alarm

OK 

5:

如何禁止和使能7X驱动标签点(对驱动自动禁止特别有用)?

opcDriver 

New 

OPCDrv.OPCServer

objDriver 

strDRVAcronym 

String

strProgId 

Variables 

GetChannel

lngNumChannels 

lngChanHandles

strChanNames

GetDevices

lngNumDevices 

lngDeviceHandles

strDeviceNames

GetDataBlocks

lngNumDataBlocks 

lngDataBlockHandles

strDataBlockNames

Integer

lngErrors

myvar 

readEnable

InputBox("

Please 

enter 

driver'

three 

letter 

acronym?

&

vbCrLf 

(For 

Example:

Enter 

ABR 

Driver)"

Driver 

using?

Intellution."

drv"

Matrikon.OPC.Simulation.1"

CreateObject(strProgId)

opcDriver.GetChannels(lngChanHandles, 

strChanNames)

Build 

SetPropertyData 

function.

lngHandle 

lngDataBlockHandles(0)

varProperties 

Enabled"

varProperyData 

1"

opcDriver.GetPropertyData 

lngChanHandles

(1), 

varProperties, 

对服器1置真

readEnable 

0"

Then

lngErrors 

opcDriver.SetPropertyData(lngChanHandles

(1), 

varProperyData)

If

opcDriver.GetDevices(lngChanHandles

(1), 

lngDeviceHandles, 

strDeviceNames)

opcDriver.GetDataBlocks(lngDeviceHandles(0), 

lngDataBlockHandles, 

strDataBlockNames)

读工作组

lngDeviceHandles(0), 

opcDriver.SetPropertyData(lngDeviceHandles(0), 

处理工作块

lngDataBlockHandles(0), 

For 

1

opcDriver.SetPropertyData(lngDataBlockHandles(i), 

Next 

i

6:

iFIX_如何使用脚本实现驱动(7x)的启动和停止?

explains 

7.x 

driver 

through 

code. 

uses 

driver. 

implement 

another 

driver, 

change 

acronym 

switch 

reference 

driver.

work 

drivers. 

want 

new 

picture 

need 

set 

Intellution 

ABRDrv 

OPC 

Server 

7.20 

Library. 

reference, 

steps:

1) 

On 

Tools 

menu 

VB 

Editor 

choose 

References.

2) 

Select 

Library 

list.

Add 

two 

buttons 

your 

name 

them 

cmdStart_Click 

cmdStop_Click.

Then 

paste 

into 

picture:

cmdStart_Click()

ABRDriver 

ABRDrv.ABRServer

ABRDriver.Stop

cmdStop_Click()

ABRDriver.Start

7:

iFIX_如何使用脚本实现驱动(6x)的启动和停止?

articles 

describes 

(start 

stop) 

6.x 

drivers 

VBA, 

Command 

Script, 

DOS 

rather 

Control.

attached 

application 

DCTRL61.EXE 

enables 

do 

this. 

Below 

usage 

instructions.

Usage:

DCTRL 

delay 

[sleep]

where 

is:

driver

polling

STOP_EXIT 

polling 

exit

SLEEP 

sleep 

time 

(period)

STATUS 

current 

values

DELAY 

Wait 

Number 

milliseconds 

before 

executing 

( 

1000 

second).

dctrl61.exe 

located 

FIX32 

Dynamics 

directory. 

ALL 

CAPS.

Example 

prompt:

dctrl60 

MBR

VBA:

Shell 

c:

\fix32\dctrl60 

MBR"

script:

Runtask 

8:

iFIX_脚本进行调度的启动和关闭方法?

Fals

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 解决方案 > 学习计划

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2