1. Objective: Transmit sensor data in Omron CP2E to Proteus Video box over RS232-SERIAL/Ethernet. 2. Sending inclinometer sensor data, RS485 - PLC, D220, D306 and D406 values in place of VAL1,VAL2,VAL3 - $SentenceA,VAL1,VAL2,VAL3*XX

Job ID: 38358380

Budget: $30 – $250 SGD

Notes For Programmer

1. Objective: Transmit sensor data in Omron CP2E to Proteus Video box over RS232-SERIAL/Etherent settings with a preference to use ethernet.

2. Manuals for both the CP2E and Proteus video box are include in this folder for reference as needed.

3. Sending inclinometer sensor data, RS485 - PLC, D220, D306 and D406 values in place of VAL1,VAL2,VAL3

$SentenceA,VAL1,VAL2,VAL3*XX

Data format: Per the communication protocols listed in the proteus manual
(See pages 6-11 in the Proteus User Manual & pages 6-8 in Proteus Software Manual)
the data sent must be in CSV format.
CSV1-4 can be used for RS232, while CSV1 is the only available format for ethernet protocol.
The checksum will be the universal "*XX" as seen on page 6 of the Proteus software manual.

EXAMPLE CSV1 Format as tested using Packet Sender utility:
$SentenceA,130.11,90.40,456.50*XX
hex equivalent: 24 53 65 6E 74 65 6E 63 65 41 2C 31 33 30 2E 31 31 2C 39 30 2E 34 30 2C 34 35 36 2E 35 30 2A 58 58 0A
This will fill the first three values on our video display box with 130.11, 90.40, and 456.50 in order.

4. Ethernet settings on Proteus (See page 9 in Proteus User Manual)
IP: 192.168.1.3
Subnet 255.255.255.0
gateway: 0.0.0.0
UDP Protocol: Port 9999

5. RS232 Serial settings on Proteus (See page 7 in Proteus User Manual)
Format: CSV1-4 (Configurable-prefference to CSV1)
Baud: 115200 (default)


6. Proposed methods/CP2E internal instructions in CP2E for sending data
Ethernet/Network Method (See pages 448-464 in CP2E Internal Instruction Manual) using SEND(092) Command
RS232 Serial Method using Serial port 2 on the CP2E(See pages 436-440 in CP2E Instruction Manual) using TXD(236) command:

7. Data Map reconfiguration:
D1-D1000: Incoming data from any sensor. FOR EXAMPLE: 16bit UINT 0-65535 from analog sensor
D1001-D2000: Data Processing/Conversion constants. FOR EXAMPLE: Scale to map 0-65535 incoming value from temperature sensor that reads -40C to 180C
D2001-D3000: Processed Data from sensors/inputs. FOR EXAMPLE: 32bit Real value of temperature sensor: 100.56C
D3001-D4000: Internal Data calculations: FOR EXAMPLE: 32Bit real value to String
>D4001: Assign Logical order of data memory as needed.
Related categories: PLC & SCADA Electrical Engineering PLC