EasyManua.ls Logo

Omron SYSMAC CV1000 User Manual

Omron SYSMAC CV1000
147 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #60 background imageLoading...
Page #60 background image
56
4-3-5 Frame Checksum (FCS) Calculation
The frame checksum is an 8-bit value converted into two ASCII characters. The
8-bit value is the result of an EXCLUSIVE OR sequentially performed between
each character in a transmission, from the first character in the frame to the last
character of the text in that frame.
@ 10 RR 0000001 42 * CR
@ 0100 0000
XOR
1 0011 0001
XOR
0 0011 0000
XOR
R 0101 0010
1 0011 0001
Result 0100 0010
↓↓
42
Example
Converted to hexadecimal
and treated as ASCII
Node
No.
Header Text FCS Termi-
nator
FCS Calculation Program The following program is an example of how frame checksum calculations can
be performed on received data.
400 FCSCHECK
405 L=LEN(RESPONSE$) Transmit/receive data. . . . . . . . . . . . . . . . . . . . .
410 Q=0:FCSCK$=” ”
415 A$=RIGHTS$(RESPONSE$, 1)
417 PRINT RESPONSE$, A$, L
420 IF A$=”” THEN LENGS=LEN(RESPONSE$)–3 ELSE LENGS=LEN(RESPONSE$)–2
430 FCSP$=MID$(RESPONSE$, LENGS+1, 2) Receive FCS data
440 FOR I=1 TO LENGS Number of characters in FCS calculation range.. . . . . . . . . . . . . . . . . . . . .
450 Q=ASC(MID$(RESPONSE$, I, 1)) XOR Q
460 NEXT I
470 FCSD$=HEX$(Q) FCS calculation result. . . . . . . . . . . . . . . . . . . . . . . . .
480 IF LEN(FCSD$)=1 THEN FCSD$=”0”+FCSD$
490 IF FCSD$<>FCSP$ THEN FCSCK$=”ERR”
495 PRINT ”FCSD$=”;FCSD$, ”FCSP$=”;FCSP$, ”FCSCK$=”;FCSCK$
500 RETURN
Note 1. Received data contains an FCS, delimiter/terminator, etc. If the data is not
received normally, however, any of these parts may be missing or corrupted.
Be sure to allow for the possibility of missing or corrupted data when receiv-
ing data at the host.
2. In this example, the code for CR (CHR$ (13)) is not included in RE-
SPONSE$. Modify lines 415 and 420 to include the code for CR.
C-mode Commands Section 4-3

Table of Contents

Question and Answer IconNeed help?

Do you have a question about the Omron SYSMAC CV1000 and is the answer not in the manual?

Omron SYSMAC CV1000 Specifications

General IconGeneral
ManufacturerOmron
TypePLC
Memory CapacityNot specified in detail
Communication PortsRS-232C
Power Supply24 VDC or 100-240 VAC (depending on model)
Operating Temperature0°C to 55°C
Humidity10% to 90% (non-condensing)
Vibration Resistance10 to 57 Hz, 0.075 mm amplitude
Shock Resistance10 G
ModelSYSMAC CV1000

Summary

SECTION 1 Introduction

SECTION 2 Switch Settings and Communications Parameters

2-2 Host Link Unit Settings and Parameters

Details on Host Link Unit components, switches, and setting procedures.

SECTION 3 Installation

3-4 RS-232C Connections

Specifications and connection methods for RS-232C connections.

3-5 RS-422 Connections

Specifications and connection methods for RS-422 connections.

SECTION 4 Communications

4-1 Initial Communications Test

Steps for performing an initial test to verify system operability.

4-3 C-mode Commands

Details C-mode commands, protocol, blocks, and checksum calculation.

4-5 Communications Timing

Explains transmission timing in full-duplex and half-duplex communications.

SECTION 5 C-mode Commands

5-24 ERROR READ

Reads and clears PC errors.

SECTION 6 Maintenance and Troubleshooting

6-1 Maintenance

Explains maintenance methods and procedures for the Host Link System.

Appendix D Sample Programs Including Commands for Host Computer

Related product manuals