The text of a manual · part 13 of 14
Series One/Series Three Data Communications User's Manual: Chapter 6 Serial Interface Protocol, pages 122 to 127
Pages 122 to 127 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 122
GEK-90477
Serial Interface
Protocol
6-l 7
NOTE If a time out occurs when actual data is being transmitted t; or from and Series One and Series One Junior CPU, try reducing the number of bytes to be transmitted.
Table 6.2 SERIAL
LINK TIME-OUTS
CONDITION
TIME OUT WITH TURN AROUND DELAY OF 0 MS 10 MS
1. Wait on ACK/NAK following ENQ 2. Wait on start of header following ACD of ENQ 3. Wait on header to finish Data Rate (bps) 300 1200 9600 19200 4. Wait on ACK/NAK following header 5. Wait on start of data following ACK of header 6. Wait on ACK/&AK following data block 7. Wait on data block to finish Data Rate (bps) 300 1200 9600 19200 8. Wait on EOT to close link
800 800
810 810
2670 670 670 670
2680 680 680 680
2000 20000
2010 20010
20000
20010
33340 8340 8340 8340
33350 8350 8350 8350
800
810
Page 123
GEK-90477
Serial
Interface
COMMUNICATION
ERRORS
Serial Link communication 1. 2. 3. 4.
6-18
Protocol errors are divided into four groups:
Invalid Header invalid Data Invalid NAK, ACK or EOT Serial Link Time Outs
The different errors are outlined in the following four sections:
NOTE If you experience communication errors, retrieve the Diagnostic Status Words for troubleshooting information. For the format of the diagnostic status words, see the section, Diagnostic Status Words, in Chapter 5.
Invalid
Header
The following device.
errors cause the header to be invalid and therefore
NAK’ed by the target
Incorrect LRC (header checksum). No SOH. No ETB. Parity, overrun, of framing error. Invalid unit ID number (does not match resident unit ID number). lnval id memory type. Attempted to access Series One Plus memory which is password protected. Invalid header character (not O-9, A-F). Invalid address for specified memory address (see description of memory types). Number of complete blocks and number of bytes in last block both = 0 Number of bytes in last block not even when the memory type is 1, 6, 7, or 9. Reading from or writing to discrete I/O while the CPU is in Stop/Prog mode. Writing to PC type in the scratch pad. Writing to user logic while the CPU is in Run mode. Writing a partial instruction to user logic. Reading timer/counter references in Stop/Prog mode. Writing to timer/counter references in Stop/Prog mode or Run mode.* Reading timer/counter references in Stop/Prog mode.* l
* Invalid but does not get NAK’ed.
The header is retried a maximum of three times. If the DCU or DCM is connected to the Series Six CCM and the header still has one of the errors listed, the CCM will abort the session and send and EOT to the DCU or DCM. The DCU or DCM then waits for an ENQ to start a new session.
Page 124
GEK-90477 lnterf
6-19 ace Protocol
Data
Invalid If any header
Serial of the following errors occur, the same procedure is followed as for m an invalid l
Incorrect LRC (checksum) . No STX l No ETB or ETX Note: ETX must occur in last block l Parity, Overrun? or Framing Error l
Invalid
NAK, ACK, or EOT
If the DCU or DCM is expecting received that is not one of these, to the other device.
Serial only one of these control characters and a character is the DCU or DCM aborts the session and sends an EOT I
Link Time Out
If at any time during the conversation the DCU or DCM times out waiting device, the conversation is aborted and an EOT is send to the other device.
ACCESSING
THE CPU SCRATCH for the other
PAD
There are only 2 fields within the Series One, Series One Scratch Pad that can be accessed: the CPU RUN/STOP field Series One Plus CPU Scratch Pad contains more fields following sect ions.
Junior, or Series Three CPU and the PC Type field. The which are discussed in the
The RUN/STOP field address 0 with a length
Memory l l
These
To put Scratch To put Scratch numbers can be written to or read of 2 bytes only.
the CPU Pad. the CPU Pad.
from using
Type
6 and starting
Run mode, write
OlOlH to address
OOOOH and 000 1H in the in Stop mode, write
8080H to address
OOOOH and 000 1H in the in
(0101 H and 8080H)
also indicate the CPU mode when this field is read.
The PC Type can only be read using memory type 6 and starting address 0016H with a This field indicates whether the CPU is a Series One, Series One length of 2 bytes only. Junior, Series One Plus, or Series Three CPU. e l l l
Series Series Series Series
One CPU = OlOlH. One Junior CPU = 0202H One Pius CPU = 0303H Three CPU = 0707H
Page 125
GEK-90477
Serial
Interface
Protocol
USING THE PASSWORD AND ERROR ONE PLUS PC
6-20
CHECKING
FEATURES
OF THE
SERIES for the Series One Plus Scratch-Pad
The addressing
Table 6.3
SERIES ONE PLUS ADDRESS (Hex)
SERIES ONE PLUS
SUB-COElMAKD (Hex)
0000 0002
0009 OOOA 0003 0006
0004
OOOA 0016 is as follows:
CPU SCRATCH-PAD
ADDRESSES
DESCRIPTION
PC Yode Sub-command for executing the functions: Logging-In with the Password Changing the Password Grammar checking Reading Error Address Location of the error code generated by Grammar check and of the error location in the user program Password Write Location PC Type
Reading or writing the PC mode (RUN/STOP) and reading the PC type are the same for the Series One Plus as for the Series One/Junior and Series Three PCs (see application examples 20-22). The password and error checking features are available dnly for the Series One Plus PC and require the use of a sub-command written to OOOZH of the Scratch-Pad (see explanation below).
Logging-in on the Series
One Plus CPU using the Password either using the manual programmer or through If a password has been assigned, communications, you must log in before executing a communications request to memory request for these memory types 1, 3 and 7. If you do not log in, the communications types will fail. It is not required to log in for communications requests to memory types is done by executing a CCM 6 (Scratch Pad) and 9 (Diagnostic Status Words). Logging-In protocol write command to the Scratch-Pad beginning at address 0002 (Hex). The write command will write 10 bytes of information as follows. 00
(Hex) 09 (Hex) 00 00 00 00 00 00 XX (BCD) xx (BCD)
Where 0009H is the subcommand written to Scratch-Pad address OOO2H, and where xxxx (BCD) is the existing password (Valid range O-9999). A value of 0 is equivalent to no password.
(Password, most significant digits). (Password, least significant digits).
Page 126
GEK-90477
Chanqinq
Serial Interface the Password
6-21
Protocol of the Series One Plus PC
Changing the password is a 2-step operation. First, you must log in as explained in the preceding section. Then you must execute another write command to the Series One Plus Scratch Pad beginning at address 0002. The write command will write 10 bytes of information as follows. 00 (Hex) OA (Hex) 00 00 00 00 00 00 XX (BcD) XX (BcD)
User Program
Where OOOAH is the subcommand written to Scratch-Pad address OOO2H, and where xxxx (BCD) is the new password (Valid range O-9999). A value of 0 is equivalent to no password.
(Password, (Password, most least significant significant digits). digits).
Error Checking
A complete program error check can be initiated One Plus CPU as explained below.
Reading at any time on a program in the Series the error code is a 4 step operation.
1.
To initiate Scratch-Pad the error check, address 0002H.
2.
Read the error code from the Scratch Pad address the contents of address 0004H. If the contents of address 0004 is zero, there is no error code. If the contents of address 0004 is not zero, then this is the error code. Go to the next step to find the location of the first error in the user program.
3.
To find the location address 0002.
4.
Read the location of the error from the Scratch-Pad address 0004. address 0004 is the location of the first error in user memory.
of the write error, the subcommand, write
0003H, the subcommand,
Table 5.9 defines the errors which may be found Plus CPU is transition from PROGRAM to RUN.
to the
0006H, in a user program
Series
One Plus to Scratch-Pad
The contents of when the Series One