The text of a manual · part 8 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 76 to 85
Pages 76 to 85 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 76
GEK-90477
Communication
Examples
READ FROM TARGET (SERIES ONE/JR/PLUS)
Example 1:
5-21
.
TIMERS AND COUNTERS
Read 5 Series One/Junior/Plus Timer/Counter accumulated values and store in the Series Six data registers starting at Register 1. The taraet ID is 10. The communication is to take place on the Jl port of rhe Series Six CCM. R nnnn Rnnnn Rnnnn Rnnnn
(+lI (+2) (+3)
= = =
Rnnnn Rnnnn
(+4) (+5)
= =
The Series
Six ladder from target to 06101 (decimal) COMMAND NUMBER - read source Register Table. 00010 ID OF TARGET DEVICE - 10. ters. 00001 MEMORY TYPE OF TARGET - Timers/Coun 00001 MEMORY ADDRESS OF TARGET - Start reading from Series One/Junior/Plus T/C accumulator reference 600. See Tables 5.1, 5.2, and 5.3 for mapping of Series One/Junior/Plus Timer/Counter reference numbers to reference numbers used for communication. 00005 DATA LENGTH - 5 words (5 registers) of data in Series 00001 Memory Address of Source - Start storing Six at Register 1. logic is shown below:
00101
10001 + --
1 [ l -----------------~---~~~~~~~~~~~~~~~~~~~~~~~L~~~~~~-~~~~----------
00101 + --
1 [ --- [
(OS >-+
ROlOO +06101
+OOOlO
BLOCK NOVE +OOOOl +00005 +OOOOl
+OOOOl
I+--( >-+ +OOOOO
1 00101 ROlOO +-- 1 [ ---[SCREQ]
The low byte of a Series low byte of a Series Six register.
One/Junior/Plus The register.
Timer or Counter accumulator is stored in the high byte is stored in the high byte of a Series Six
Page 77
GEK-90477
Example
Examples
2:
READ
FROM
Read store target Jl .
the first 16 Series One/Junior/Plus external WO points and in Series Six Input Status Table starting at Input point 1. The ID is 10. The communication is to take place on CCM port
Rnnnn Rnnnn Rnnnn Rnnnn
(+l) (+2) (+3)
= = =
Rnnnn Rnnnn
(+4) (+5)
= =
The Series
5-22
Communication
Six ladder
TARGET
I/O (SERIES
ONE/JR/PLUS)
- Read from target to source Input 06102 COMMAND NUMBER Status Table. 00010 ID OF TARGET DEVICE - 10. 00003 MEMORY TYPE OF TARGET - Discrete l/O. 00001 MEMORY ADDRESS OF TARGET - Beginning address in Series One/Junior/Plus/l/O table - I/O point number 1. See Tables 5.1, 5.2, and 5.3 for mapping of Discrete I/O reference numbers to reference numbers used for communication. 00016 DATA LENGTH - 16 Input points. 00001 MEMORY ADDRESS OF SOURCE - Begin storing in Input Status Table at address 1. logic is shown below:
00102 l
00102 + --
1 I --- [
ROlOO
+o61oz
+ooOlO
BLOCK MOVE +00003 +OOOOl
+00016
+00001
I+--(
>-+
Table in the
+OOooo
00102 ROlOO + -- 1 [ ---[sCREQ]
I/O from following the Series One/Junior format (only the first will be stored in the Series Six 8 I/O in the example are shown).
Series Six Inputs l-8 8 7 6 5 4 3 2 1 7 6 5 4 3 2 1 0 Series Three I/Q points O-7
Input
Status
Page 78
GEK-90477
Example
Communication
3:
5-23
Examples
WRITE TO TARGET
I/O (SERIES
ONE/PLUS)
Write 16 Series One/Plus internal I/O points (pointsn 160-177) Series Six Output Status Table starting at output point 33. The ID is 10. The communication is to take place on CCM port Jl.
to target from source Output = 06113 COMMAND NUMBER - write Status Table. = 00010 ID OF TARGET DEVICE - 10. = 00003 MEMORY TYPE OF TARGET - Inputs or outputs. = 00015 MEMORY ADDRESS OF TARGET - Start writing to Series One internal I/O point 160. See Tables 5.1 and 5.3 for mapping of Series One and Series One Plus discrete I/O reference numbers to reference numbers used for communication. = 00016 DATA LENGTH - 16 points. = 00033 MEMORY ADDRESS OF SOURCE - Start transfer in Series Six at Output Status Table reference 33.
Rnnnn Rnnnn Rnnnn Rnnnn
(t3)
Rnnnn Rnnnn
(t4) (t5)
(+l)
(t2)
The Series Six ladder
+ -- 1 from target logic is shown below:
00103
[ --_--_---_-_-_---_______-______-_____-__----------_------_-___-___
(OS)-+ l
00103 + --
ROlOO
1 I --- [
BLOCKYOVE +06113 +OOOlO +00003 +00015 +00016
I+--( I-+ +00033 +OOOOO
00103 ROlOO +---1 [ ---[SCREQ] to be sent to Series One/Junior/Plus I/O must be stored in the Series Six Output The sample format shows the relationship Table before execution of the serial request. above of Series Six Outputs to their corresponding Series One/Junior/Plus I/O (only first 8 Outputs outputs in the example are shown).
Series 40
167
.4
39
38
Six Inputs 33-40 37
36
35
34
33
166 165 164 163 162 161 160 Series Three I/O points 160-167
NOTE
Based on the timeouts in Table 6.2, Series writeen-to from the Series Six PC.
One Junior l/O cannot be
Page 79
GEK-90477
Example
Communication
Examples
READ FROM TARGET
4:
5-24
USER MEMORY
(SERIES
ONE/JR/PLUS)
Read the first 16 words of the user program” in the Series One/Junior/Plus CPU and store them in Series six data registers starting at Register 1. The Target ID is 10. The commmkation is to take place on CCM port Jl.
06101
Rnnnn Rnnnn Rnnnn Rnnnn
(+l) (+2)
= =
(t3)
=
Rnnnn Rnnnn
(t4)
=
(4
=
The Series
Six ladder
- Read from target to source Register COMMAND NUMBER Table. 00010 ID OF TARGET DEVICE - 10. 00007 MEMORY TYPE OF TARGET - User-Logic memory. 00000 MEMORY ADDRESS OF TARGET Read from Series One/Junior/Plus user program beginning at address 0. 00016 DATA LENGTH - 16 words (16 registers). 00001 MEMORY ADDRESS OF SOURCE - Store in Series Six beginning at Register 1. logic is shown below:
00104 /r\P \
10004 r 1 _---------_------_-_--------_----__-------_-_----_-_-_--__________ 1
+--I
00104 + --
1 I --- [
(US
/-+
ROlOO BLOCK MOVE +Of)lOl +OOOlO +00007 +ooooo
ROlOO 00104 +-- 1 [ ---[SCREQ]
I+-( +OOOM
+00001
+ooooo
>-+
Page 80
GEK-90477
Example
Communication
5-25
Examples
WRITE TO TARGET
5:
USER MEMORY
(SERIES ONE/JR/PLUS)
Write to the first 16 words of the user program in the Series One/Junior/Plus CPU from program data stored in Series Six data Registers 1-16. The target ID is 10. The communications will take place on the Jl port of the CCM in the Series Six. The CPU must be placed in Program/Stop mode either using the keyswitch or a serial request before writing to User Logic. Rnnnn
06111
COMMAND
NUMBER
- Write to target from source
Register
Table. Rnnnn Rnnnn Rnnnn
(tl) (t2) (t3)
Rnnnn Rnnnn
(t4) (t5)
The Series
Six
= 00010 ID OF TARGET DEVICE - 10. = 00007 MEMORY TYPE OF TARGET - User-Logic memory. = 00000 MEMORY ADDRESS OF TARGET Start writing User-Logic memory address 0. = 00016 DATA LENGTH - 16 words (16 registers). = 00001 MEMORY ADDRESS OF SOURCE - Start transfer Series Six at Register 1.
ladder logic is shown
1 from below:
00105 /np\ . \U3 /-+
10005 1 r
+ --I to
--_----_-----I--_-----~~-~-~~~~-~-------~------~------~--~-~--~~~~ l
00105
+ --
ROlOO
1 1--- C
+06111
00105 ROlOO +-- 1 [ ---[SCREQ]
BLOCK ?lOVE +OOOlO +00007 +OOOOO +00016
I+-( +OOOOl +OOOOO
I-+
Page 81
GEK-90477
Example
Communication
Examples
5-26
READ FROM TARGET
6:
DATA
REGISTERS
(SERIES ONE PLUS)
Read 64 Series One Plus Data Registers and store registers starting at Series Six Register 1. Communication to take place on CCM port Jl. Rnnnn Rnnnn Rnnnn Rnnnn
(+l) (+2) (+3)
Rnnnn
(+4)
Rnnnn
(+5)
The Series in-Series Six data Target ID is 10.
06101 (decimal) 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 One Plus Register 400. See Table 5.3 for mapping of Series One Plus data register reference numbers to reference numbers used for communication. = 00032 DATA LENGTH - 64 Series One Plus registers (32 Series Six registers). = 00001 MEMORY ADDRESS OF SOURCE - Start storing in Series Six at Register 1.
Six ladder logicis shown below:
OOLO6 /T\P\ .
10006
00106 + --
I [
ROlOO BLOCK MOVE
--a [
+06101 +OOOlO +OOOOl +00065 +00032
I
00106 +
-a
I+-( b+
+OOOOl +OOOOO
ROlOO
1 1--- [ SCREQ]
Series data registers are 8-bits long therefore two of these registers will be to one 16-bit Series Six register. The least significant of the two Series One registers will be transferred to the least significant byte of the corresponding
One Plus transferred
Plus data Series Six register
(see sample format below):
.
Series Six Register 1 High Byte Low Byte Series One Plus Register 2 Series One Plus Register 1 (address 400) 3 (address 401)
Page 82
GEK-90477
Example
Communication
5-27
Examples
WRITE TO TAl?G;T
7:
DATA
REGISTERS (SERIES ONE PLUS)
Write to the 64 Series One Plus data registers from Series Six data ID is 10. registers starting at Series Six Register 1. Target Communication to take place on CCM port Jl. 06111 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 reading from Series One Plus Register 400. See Table 5.3 for mapping of Series One Plus data register reference numbers to reference numbers used for communication. 00032 DATA LENGTH - 64 Series One Plus registers (32 Series Six registers). 00001 MEMORY ADDRESS OF SOURCE - Start sending from Series Six Register 1.
R nnnn Rnnnn(+l) Rnnnn(t2) Rnnnn(t3)
Rnnnn Rnnnn
The Series Six ladder logic is shown below:
10007
00107
1
(OS)-+
----‘------------~~--------~--~--~----------------------~-~-.-~~--~- l
00107 + --
ROlOO
1 [ --- [
BLOCKYOVE
+06111 +OOOlO +OOOOl +00065 +00032
I
00107 + --
I+-(
>-+
+OOOOL +OOOOO
ROlOO
1 1---[SCREQ]
Series One Plus 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 One Plus data registers will be’ written-to from the least significant byte of the corresponding Series Six register (see sample format below):
Series
Series Six Register 1 High Byte Low Byte One Plus Register 2 Series One Plus Register (address 401) (address 400)
1
Page 83
GEK-90477
Example
Communication
Examples
5-28
WRITE TO TARGET TIMER/COUNTER (SERIES ONE PLUS)
8:
ACCUMULATORS
Write to 2 Series One Plus Timer/Counter accumula*tors from Six registers starting at Series Six Register 1. Target ID Communication to take place on CCM port Jl. Rnnnn Rnnnn Rnnnn Rnnnn
(+l) (+2) (+3)
Rnnnn Rnnnn
(+4)
The Series
06111 (decimal) COMMAND NUMBER - Write to target from source Register Table. = 00010 ID OF TARGET DEVICE - 10. = 00001 MEMORY TYPE OF TARGET - Register memory. = 00001 MEMORY ADDRESS OF TARGET Start writing to Timer/Counter 1 (referenced as T/C 600 in the user program). See Table 5.3 for mapping of Timer/Counter 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.
(+5)
Six ladder logic is shown below:
00109
10009 + -1
1 r
1
Series is 10.
(OS)-+
---------------------~---~~~~~-------------------cI---------------- l
00109 + --
ROlOO
1 [:--- 1
+06111
BLOCK MOVE I+-( +OOOlO +OOOOl +OOOOl +OOOOZ +OOOOl +OOOOO
I-+
1
ROlOO 00109 + -- 1 c---[SCREQ]
NOTES ON WRITING l
TO TIMER/COUNTER
Values can be written referenced by a timer
ACCUMULATORS at any time to Timer/Counter accumulators or counter in Series One Plus user logic.
which are not
Page 84
GEK-90477 l
Communication
5-29
Examples
If a timer is programmed in Series One Plus user logic and the input to that timer is open, the value of the accumulator will always be zero. If, however, the input to the timer is closed and the timer is timing, the accumulator will assume the value written to it and will resume timing out from that value. Once the timer has timed out, the accumulator will accept n&w values, and if the value is below the preset, the timer “coil” is reset and the timer will start timing from the new accumulator va ue to the preset. When the timer is reset, the accumulator will always assume the va ue of zero. in Series One Plus user logic, it can be he Once the counter has counted out, accumulator will accept new values, and if the value is below the preset, the counter “coil” is reset and the counter will start counting from the new accumulator value to the preset. When the counter is reset, the accumulator will always assume value of
When written a counter accumulator to unless the reset is programmed input is on.
zero. must be placed in Ser ies Prior to execution of the serial request, data to be tra nsferred Six registers as follows: T he low byte of a Series One PI us Timer or Counter accumu lator The high by te of must be stored in the low byte of the corresponding Se ries Six register. in the high byte o f the the Series One Plus timer or counter accumulator must be stored Series
Six register.
Page 85
GEK-90477
Example
Communication
9:
Examples
LOGGING-IN
5-30
WITH PASSWORD (SERIES ONE PLUS)
Log-in on the Series One Plus CPU in which the password 1234 has been assigned previously (by the manual programmer or communications). Rnnnn Rnnnn (+lJ Rnnnn (+2) Rnnnn (t3) Rnnnn (+4) Rnnnn (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 02. = 00005 DATA LENGTH - 5 registers. = 00001 MEMORY ADDRESS OF SOURCE - Start sendina from Series Six Register 1. See explanation below:
The Series Six ladder logic is shown below:
00109 --_-_--_-_-_____-(OS)-+
KHo9 ROlOO +-- IC --- [ +06111 +OOOOZ
BLOCK MOVE +00006 +OOOOZ +00005
;+-( >-+ +00001 +ooooo
00109 ROlOO +-- IL ---[SCREQ]
To log-in on the Series One Plus, the contents of 5 Series Six registers as shown below must be written to the Scratch-Pad of the Series One Plus CPU starting at address 0002. In this example, Register 1 contains the subcode for logging-in and Register 5 contains The password must have been assigned previously (using the manual the password. programmer or communications as shown in application example 10). ROOOl 0900 (Hex) R0002 0000 R0003 0000 R0004 0000 R0005 1234 (Hex)