The text of a manual · part 9 of 14
Series One/Series Three Data Communications User's Manual: Chapter 5 Communication Examples using the Series Six PC as a Master Device, pages 86 to 95
Pages 86 to 95 of 134, from Series One/Series Three Data Communications User's Manual
The original document is the PDF (14 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
Filed in the catalog under the GE Fanuc IC630MDL357A, Fanuc IC630MDL357A and GE IC630MDL357A
Page 86
GEK-90477
Example
Communication
Examples
CHANGE
10:
5-31
PASSWORD (SERIES ONE PLUS)
Change the password to the Series One Plus CPU to”0100 (BCD). If has been assigned previously, you must first log in according to the instructions in example 9. If a password has not been assigned, you do not need to log in.
a password
06111 (decimal) COMMAND NUMBER - Write to target from source Register Table. = 00002 ID OF TARGET DEVICE - 2. = 00006 MEMORY TYPE OF TARGET - Scratch-Pad. = 00002 MEMORY ADDRESS OF TARGET Start writing to Scratch-Pad address 02. = 00005 DATA LENGTH - 5 registers. = 00001 MEMORY ADDRESS OF SOURCE - Start sending from Series below: Six at Register 1. See explanation
Rnnnn Rnnnn Rnnnn Rnnnn
(+l) (+2) (+3)
Rnnnn Rnnnn
(+4) (+5)
The Series
Six ladder
00110
ROlOO
+ --
1 I:--- [
+06111
I
+ -- logic is shown below:
BLOCK XOVE +00002 +00006 +00002 +00005
I+-(
>-+
+00001 +ooooo
00110 ROlOO 1 1---[SCREQ]
To change the password, the contents of 5 Series Six registers as shown below must be written to the Scratch Pad starting at address 0002. In this example, Register 1 contains the subcode for changing the password and Register 5 contains the new password. ROOOl R0002 R0003 R0004 R0005
* Enter this
BCD
OAOO (Hex) 0000 0000 0000 0100 (BCD*)
value in HEX mode from the Display
Reference
Tables function
Page 87
GEK-90477
Communication
Example 11:
5-32
Examples
CHECK Checking execution
PROGRAM
ERROR CODE (SERIES ONE for a user program of 4 communication error and requests.
its
PLUS)
location requires the
1. To inititate the error check, write Register 1 containing the subcommand (0300 Hex) to the Series One Scratch-Pad starting at address 0002. This initiates the error check. Rnnnn Rnnnn (+l) Rnnnn (+2) Rnnnn (t3) Rnnnn (t4) Rnnnn (t5)
2.
= 06111 (decimal) COMMAND NUMBER - Write to target from source Register Table. = 00002 ID OF TARGET DEVICE - 2. = 00006 MEMORY TYPE OF TARGET - Scratch-Pad. = 00002 MEMORY ADDRESS OF TARGET - Start writing to Scratch-Pad address 02. = 00001 DATA LENGTH - 1 register. = 00001 MEMORY ADDRESS OF SOURCE - Start sending from Series Six Register 1.
To read the error code, read the Series One Plus Scratch-Pad Rnnnn Rnnnn (tl) Rnnnn (t2) Rnnnn (t3) Rnnnn (t4) Rnnnn (4)
address 0004.
= 06101 (decimal) COMMAND NUMBER - Read from target to source Register Table. = 00002 ID OF TARGET DEVICE - 2. = 00006 MEMORY TYPE OF TARGET - Scratch-Pad. = 00004 MEMORY ADDRESS OF TARGET - Start reading from Scratch-Pad address 0004. = 00001 DATA LENGTH - 1 register. = 00002 MEMORY ADDRESS OF SOURCE - Start storing in Series Six Register 2.
3. If the contents of Scratch-Pad address 0004 are 0, then there is no error. If the contents are not 0, initiate the error location check by writing Register 3 containing the subcommand (0600 Hex) to Series One Scratch-Pad address 0002. R nnnn Rnnnn (tl) Rnnnn (t2) Rnnnn (t3) Rnnnn (t4) Rnnnn (t5)
4.
06111 (decimal) COMMAND NUMBER - Write to target from source Register Table. = 00002 ID OF TARGET DEVICE - 2. = 00006 MEMORY TYPE OF TARGET - Scratch-Pad. = 00002 MEMORY ADDRESS OF TARGET - Start writing to Scratch-Pad address 0002. = 00001 DATA LENGTH - 1 register. = 00003 MEMORY ADDRESS OF SOURCE - Start sending from Series Six Register 3.
To read the location of Scratch-Pad address 0004. R nnnn Rnnnn (tl) 3 Rnnnn (t2) Rnnnn (t3) Rnnnn (t4) Rnnnn (4)
the error in user memory, read the
Series
One
Plus
06101 (decimal) COMMAND NUMBER - Read from target to source Register Table. = 00002 ID OF TARGET DEVICE - 2. = 00006 MEMORY TYPE OF TARGET - Scratch-Pad. = 00004 MEMORY ADDRESS OF TARGET - Start reading from Scratch-Pad address 004. = 00001 DATA LENGTH - 1 register. = 00004 MEMORY ADDRESS OF SOURCE - Start storing in Series Six Register 4.
Page 88
GEK-90477
Communication
The Series
Six ladder logic
1.
the error check.
Initiate
5-33
Examples is shown below:
10011
00111
1 [
(OS)-+
+ --
-_-L_-_----_-___-----~-~~-~-~-~~~~~~----~-~---~~~~~~~~~~~----~----
00111
ROlOO
1 i:--- [
+ --
I+--(
BLOCK MOVE +06111
2. Read the error
+OOOOZ
+00006
+OOOOZ
+OOOOl
+OOOOl code.
10112 + --1 r----_-___----_--------_-_-_-____--_-_---_______-______________-_-J
’
L
1 [
00112 (OS)-+
ROlOO
00112 + --
>-+
+OOOOO
BLOCK MOVE
--a [
I+-(
>-+
+06
3. Initiate the error location check.
10013 + -4
1
00113 (OS)-+
L -------__----_-_-_-_~~~~~~~~~~~~~~--~-~---------~--------------~ r
I 00113 +-- 1 [ ---
ROlOO
1 +06111
I
4. Read the location
BLOCK MOVE +OOOOZ +00006 +OOOOZ +OOOOl of the error
>-+
+OOOOO code.
10114 +-- 1 [ ~~~---~---_)----------------~-~----------------------------------~-
1 00114 +-- 1 [ ---
I+-( +00003
00114
(OS)-+
ROlOO
[:
BLOCK MOVE I+-( -+06101 +OOOOZ +00006 +00004 +OOOOl +00004 +OOOOO b+
Page 89
GEK-90477
Communication
5-34
Examples
ROlOO 00111 +-_1 [-----[SCREQ]
I I I I 00112
+ --
1 1-- +
00113 + -- 1 c-- +
I 00114 I 1 [ -- +
+--
The Series above
Six registers used are defined as follows:
ROOOl
-
R0002 R0003
-
R0004
- in the communications requests shorn
The subcommand (0300 Hex), written to Scratch-Pad address 0002, must be placed in this register by the programmer. Receives the Series One Plus error code from Scratch-Pad address 0004. The subcommand (0600 Hex), written to Scratch-Pad addess 0002, must be placed in this register by the programmer. Receives the Series One Plus error location in user memory.
Page 90
GEK-90477
Example
Communication
Examples
5-35
READ FROM TARGET
12:
DATA REGISTERS
Read 64 Series One Plus Data Registers registers starting at Register 1. Target to take place on CCM port Jl.
(tl)
Rnnnn
(+4)
Rnnnn
(t5)
The Series and store in Series Six data ID is 10. *Communication
06101 (decimal) COMMAND NUMBER - Read from target to source Register Table. DEVICE - 10. = 00010 ID OF TARGET = 00001 MEMORY TYPE OF TARGET - Register memory. ADDRESS OF TARGET - Start reading from Series = 00001 MEMORY Three Register 1. See Table 5.4 for mapping of Series Three data register numbers to reference numbers used for reference communication. - 64 Series Three registers (32 Series Six = 00032 DATA LENGTH registers). ADDRESS OF SOURCE - Start storing in Series = 00001 MEMORY Six at Register 1.
R nnnn Rnnnn Rnnnn Rnnnn
(SERIES THREE)
(t2) (t3)
Six ladder logic is shown below:
00106 (OS )-+
10006 1 r + -- 1 L------------L--------~~~~~~-_~---------------------------~---~----- l
00106 ROlOO +--1 [--- C
+06101
BLOCK MOVE
+00010
+00001
+00001
I+-( +00032
+00001
I-+
+ooooo
00106 ROlOO +-- 1 [ ---[SCREQ]
Series Three data registers are 8-bits long therefore two of these registers will be The least significant of the two Series transferred to one 16-bit Series Six register. Three data registers will be transferred to the least signif icant byte of the corresponding Series Six register (see sample format below): Series High Byte Series Three Register (address 501)
Six 2
Register
1 Low Byte Series Three Register (address 500)
1
Page 91
GEK-90477
Example
Communication
Examples
5-36
WRITE TO TARGET
13:
DATA
REGISTERS (SERIES THREE)
Write to the 64 Series Three registers starting at Register to take place on CCM port Jl. Rnnnn
06111 Table.
COMMAND
NUMBER data registers from 1. Target ID is 10.
- Write to target from
Series Six data Communication source
Register
Rnnnn(t1) R nnnn( t2) Rnnnn(t3)
= 00010 ID OF TARGET DEVICE - 10. = 00001 MEMORY TYPE OF TARGET - Register memory. = 00001 MEMORY ADDRESS OF TARGET - Start reading Three Register 1. See Table 5.4 for mapping of Series register numbers to reference numbers reference
R nnnn( t4)
= 00032 DATA LENGTH - 64 Series Three registers (32 Series Six registers). = 00001 MEMORY ADDRESS OF SOURCE - Start sending from Series from Series Three data used for communication.
R nnnn( t5)
Six Register The Series
Six ladder logic is shown
1. below:
10007
00107 + --
1 [ --- [
00107
ROlOO
BLOCKMOVE +06111
00107
+-- 1
+OOOlO
+OOOOl
+OOOOl
I+-( +00032
+OOOOl
>-+
+OOOOO
ROlOO
[ ---[SCREQ]
Series
Three data registers are 8-bits long therefore two of these registers will be written-to from one 16-bit Series Six register. The least significant of the two Series be written-to from the least significant byte of the Three data registers will corresponding Series Six register (see sample format below):
Series High Byte Series Three Register (address 501) *
Six Register 2
1 Low Byte Series Three Register (address 500)
1
Page 92
GEK-90477
Communication
Example
READ FROM TARGET (SERIES THREE)
14:
Three
Read 64 Series them in Series Communications Rnnnn Rnnnn Rnnnn Rnnnn
(tl)
=
(t2) (t3)
= =
Rnnnn Rnnnn
(+4)
=
(4)
=
The Series
5-37
Examples
Six ladder
TIMERS
AND
COUNTERS
Timer/Counter
Six registers takes place starting through accumulator at Register 1. CCM port Jl.
values and store Target ID is 10.
06101 COMMAND NUMBER - Read from target to source Register Table. 00010 ID OF TARGET DEVICE - 10. 00001 MEMORY TYPE OF TARGET - Register memory. 00065 MEMORY ADDRESS OF TARGET - Start reading from Series Three Timer/Counter 0 (accumulator referenced as 200). See Table 5.4 for mapping of Series Three Timer and Counter accumulator reference numbers to reference numbers used for communication. 00064 DATA LENGTH - 64 accumulator references (64 registers).’ 00001 MEMORY ADDRESS OF SOURCE - Start storing in Series Six at Register 1.
logic is shown below:
00108
10008 + -4
1 r -------------------------~~-~------------------------~~--~--~----~1
(OS)-+ l
00108 +-- 1 [ ---
ROlOO
I:
I+-(
BLOCK YOVE
+061Ol
+OOOlO
+OOOOl
+00065
+00064
+OOOOl
I-+
+OOOOO
I
00108 ROlOO + -- 1 c---[SCREQ]
The low byte of a Series
Three
Timer or Counter
The high byte of a Series a Series Six register. stored in the high byte of a Series Six register.
accumulator Three Timer is stored in the low byte of or Counter accumulator is
Page 93
GEK-90477
Example
Communication
5-38
Examples
WRITE TO TARGET (SERIES THREE)
15:
TIMER/COUNTER
ACCUMULATORS
Write to 2 Series Three Timer/Counter accumulat*or values from Series Six registers starting at Register 1. Target ID is 10. Communication to take place on CCM port Jl. Rnnnn
06111 (decimal) COMMAND NUMBER - Write to target from source Register Table. = 00010 ID OF TARGET DEVICE - 10. = 00001 MEMORY TYPE OF TARGET - Register memory. = 00065 MEMORY ADDRESS OF TARGET - Start writing to Timer/Counter 0 (accumulator reference 200). See Table 5.4 for mapping of Timer/Counter accumulator reference numbers to reference numbers used for communication. = 00002 DATA LENGTH - 2 accumulators (2 registers). = 00001 MEMORY ADDRESS OF SOURCE - Start writing from Series Six Register 1.
Rnnnn (+l) Rnnnn (+2) Rnnnn (+3)
Rnnnn (+4) Rnnnn (+5)
The Series
Six ladder logic is shown below:
00109
10009
/np
00109 + -- 1 [ ---
\
ROLOO
[
BLOCK MOVE
+06111
+OOOlO
+OOOOl
+00065
+00002
+OOOOl
+oOOOO
I+-(
I-+
I
00109 ROlOO + -- 1 [ ---[SCREQ]
NOTES ON WRITING l
TO TIMER/COUNTER
ACCUMULATORS
Values can be written at any time to Timer/Counter accumulators referenced by a timer or counter in Series Three user logic.
which are not
Page 94
GEK-90477
Communication
Examples
5-39
0
If a timer is programmed in Series Three user logic and the input to that timer is open, the programmed preset will always override any value written to the accumulator. If, however, the input to the timer is closed and the iimer is timing, the accumulator will assume the value written to it and will resume timing down from that value. Once the timer has timed out, the accumulator will accept new values but the timer will not timedown again; it must be reset first. When the timer is reset, the accumulator will always assume the preset value.
l
When a counter accumulator is programmed in Series Three User Logic, it can be written to unless the reset input is on. Once the counter has counted out, the accumulator will accept new values but the counter will not count down again; it must be reset first. When the counter is reset, the accumulator will always assume the preset value.
Prior to execution of the serial request, data to be transferred must be placed in Series Six registers as follows: The low byte of a Series Three Timer or Counter accumulator must be stored in the low byte of the corresponding Series Six register. The high byte of the Series Three timer or counter accumulator must be stored in the high byte of the Series Six register.
Page 95
GEK-90477
Communication
16:
Example
READ
5-40
Examples
FROM l/O (SERIES THREE)
TARGET
Read the 400 Series Three external I/O points Six Input Status Table starting at Input 1. Communication to take place on CCM port Jl. Rnnnn ancfstore in Series Target ID is 10.
06102 (decimal) COMMAND NUMBER - Read from target to source Input Status Table. = 00010 ID OF TARGET DEVICE - 10. = 00003 MEMORY TYPE OF TARGET - Series Three I/O. = 00001 MEMORY ADDRESS OF TARGET - Start reading from Series Three I/O point 1. See Table 5.4 for mapping of Series Three discrete I/O reference numbers to reference numbers used for communication. = 00400 DATA LENGTH - read 400 I/O points. = 00001 MEMORY ADDRESS OF SOURCE - Start storing in Series Six at Input 1.
Rnnnn(t1) R nnnn( +2) R nnnn( t3)
R nnnn( +4) Rnnnn(+S)
The Series Six ladder logic is shown below:
10010
+ -- 1
00110 c
(OS >-+
~--~-~~--~-L-----~-~~~~~~~~~---~----------------------------------
L
00110 + --
ROlOO
1 [ --- [
BLOCK MOVE +06102
+OOOlO
+00003
I+-( +00400
+OO001
+00001
>-+
+00000
00110 ROlOO +-- 1 [ ---[ SCREQ]
I
I/O from the Series Three will be stored in the Series Six Input following format (only the first 8 I/O in the example are shown). Series Six Inputs l-8 8 7
7 6
6 5
5 4
4 3
3 2
2
1 1 0 Series Three I/O points O-7
Status
Table in the