YASKAWA MP900 Series User Manual page 94

Hide thumbs Also See for MP900 Series:
Table of Contents

Advertisement

Sample Programs
B.2 Sample Program No. 2
B
B.2 Sample Program No. 2
A sample program for 260IF Module explicit messages is shown below.
(Initialize parameters during first scan.)
(Initialize parameters during first scan)
$FSCAN-L
1 0000
SB000003
1 0001
IFON
2 0002
FOR
3 0006 ┣ 0000
2 0008
FEND
(Set remote node)
2 0009
00011
(Set function code)
00003
2 0011
(Set data address)
2 0013
01000
(Set data size (No. of bytes))
2 0015
00008
(Set request service code)
2 0017
H000E
(Set class ID)
2 0019
H0001
(Set instance ID)
2 0021
H0001
(Set attribute ID)
2 0023
H0001
1 0025
IEND
(Start every 0.5 s)
05s-s
1 0026
SB000034
(Hold command)
1 0027
DB000201
(Executing)
1 0033
DB000210
(Hold abort command)
1 0036
DB000208
1 0040
(Command)
1 0041
DB000201
(Abort command)
1 0043
DB000208
(Communications device type)
1 0045
00011
(Communications protocol)
1 0046
00001
(Circuit No.)
(Network No.)
1 0047
00001
(Communications buffer channel No.)
1 0048
00001
1 0049
www.dadehpardazan.ir 88594014-15
I
= 0000
to 00031
(5-s startup delay)
(Completed)
5s-ON
SB00003A
DB000211
(16-s ON delay)
010.00
DW00022
MSG-SND
EXECUTE
BUSY
FIN
FOUT
ABORT
COMPLETE
FIN
FOUT
DEV-TYP
ERROR
========⇒
FIN
FOUT
PRO-TYP
========⇒
FIN
CIR-NO
========⇒
FIN
CH-NO
========⇒
FIN
(Parameter address)
PARAM
DA00000
B-8
by 00001
DW00000i
DW00002
DW00004
DW00005
DW00006
MW01000
MW01001
MW01002
MW01003
(Error)
(Abort command)
(Command)
DB000212
DB000208
DB000201
(Completed)
(Error)
(Abort command)
DB000211
DB000212
DB000208
(Executing)
DB000210
(Completed)
DB000211
(Error)
DB000212

Advertisement

Table of Contents
loading

This manual is also suitable for:

260if

Table of Contents