Example- Communicating with OPTO-22 SNAP-B3000-
ENET
Controller is connected to OPTO-22 via handle F. The OPTO-22’s IP address is 131.29.50.30. The Rack has the
following configuration:
Digital Inputs
Module 1
Digital Outputs
Module 2
Analog Outputs (+/-10V) Module 3
Analog Inputs (+/-10V)
Module 4
Instruction
Interpretation
#CONFIG
Label
IHF=131,29,50,30<502>2
Establish connection
WT10
Wait 10 milliseconds
JP #CFGERR,_IHF2=0
Jump to subroutine
JS #CFGDOUT
Configure digital outputs
JS #CFGAOUT
Configure analog outputs
JS #CFGAIN
Configure analog inputs
MBF = 6,6,1025,1
Save configuration to OPTO-22
EN
End
#CFGDOUT
Label
MODULE=2
Set variable
CFGVALUE=$180
Set variable
NUMOFIO=4
Set variable
JP #CFGJOIN
Jump to subroutine
#CFGAOUT
Label
MODULE=3
Set variable
CFGVALUE=$A7
Set variable
NUMOFIO=2
Set variable
JP #CFGJOIN
Jump to subroutine
#CFGAIN
Label
MODULE=5
Set variable
CFGVALUE=12
Set variable
NUMOFIO=2
Set variable
JP#CFGJOIN
Jump to subroutine
#CFGJOIN
Label
DM A[8]
Dimension array
I=0
Set variable
#CFGLOOP
Loop subroutine
A[I]=0
Set array element
I=I+1
Increment
A[I]=CFGVALUE
Set array element
I=I+1
Increment
DMC-40x0 User Manual
Appendices
•
228
Содержание DMC-4040
Страница 17: ...DMC 4080 Layout Figure 2 2 Outline of the of the DMC 4080 DMC 40x0 User Manual Chapter 2 Getting Started 8...
Страница 19: ...DMC 4040 Dimensions Figure 2 5 Dimensions of DMC 4040 DMC 40x0 User Manual Chapter 2 Getting Started 10...
Страница 20: ...DMC 4080 Dimensions Figure 2 6 Dimensions of DMC 4080 Chapter 2 Getting Started 11 DMC 40x0 User Manual...
Страница 54: ...Chapter 3 Connecting Hardware 45 DMC 40x0 User Manual...
Страница 55: ...DMC 40x0 User Manual Chapter 3 Connecting Hardware 46...
Страница 56: ...Chapter 3 Connecting Hardware 47 DMC 40x0 User Manual...
Страница 73: ...Figure 4 1 GalilTools DMC 40x0 User Manual Chapter 4 Software Tools and Communication 64...
Страница 185: ...THIS PAGE LEFT BLANK INTENTIONALLY DMC 40x0 User Manual Chapter 7 Application Programming 176...
Страница 205: ...THIS PAGE LEFT BLANK INTENTIONALLY DMC 40x0 User Manual Chapter 10 Theory of Operation 196...
Страница 220: ...Step 2 Remove ICM For DMC 4040 Proceed to Step 3 Configure Circuit Appendices 211 DMC 40x0 User Manual...
Страница 222: ...Step 2 Remove ICM s Appendices 213 DMC 40x0 User Manual...
Страница 232: ...DMC 4080 Steps 4 and 5 Step 4 Replace ICM s Appendices 223 DMC 40x0 User Manual...