17.03.2014 Views

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3. Instruction Set<br />

API Mnemonic Operands Function<br />

177 GPS GPS data receiving<br />

<strong>ES2</strong><br />

<strong>EX2</strong><br />

Controllers<br />

<strong>SS2</strong> <strong>SA2</strong> <strong>SX2</strong> SE<br />

Type<br />

Bit Devices Word devices Program Steps<br />

OP X Y M S K H KnX KnY KnM KnS T C D E F<br />

S * * *<br />

D *<br />

<strong>ES2</strong><br />

<strong>EX2</strong><br />

GPS: 5 steps<br />

PULSE 16-bit 32-bit<br />

<strong>ES2</strong><br />

<strong>ES2</strong><br />

<strong>SS2</strong> <strong>SA2</strong> <strong>SX2</strong> SE <strong>SS2</strong> <strong>SA2</strong> <strong>SX2</strong> SE <strong>SS2</strong> <strong>SA2</strong> <strong>SX2</strong> SE<br />

<strong>EX2</strong> <strong>EX2</strong><br />

Operands:<br />

S: Sentence identifier for GPS data receiving D: Destination device for feedback data<br />

Explanations:<br />

1. GPS data receiving instruction is only applicable on COM1 (RS-232), with communication<br />

format: 9600,8,N,1, protocol: NMEA-0183, and communication frequency: 1Hz.<br />

2. Operand S is sentence identifier for GPS data receiving. K0: $GPGGA, K1: $GPRMC.<br />

3. Operand D stores the received data. Up to 17 consecutive words will be occupied and can<br />

not be used repeatedly. Please refer to the table below for the explanations of each D device.<br />

• When S is set as K0, sentence identifier $GPGGA is specified. D devices refer to:<br />

No. Content Range Format Note<br />

D + 0 Hour 0 ~ 23 Word<br />

D + 1 Minute 0 ~ 59 Word<br />

D + 2 Second 0 ~ 59 Word<br />

D + 3~4 Latitude 0 ~ 90 Float Unit: dd.mmmmmm<br />

D + 5 North / South 0 or 1 Word 0(+)North, 1(-)South<br />

D + 6~7 Longitude 0 ~ 180 Float Unit: ddd.mmmmmm<br />

D + 8 East / West 0 or 1 Word 0(+)East, 1(-)West<br />

D + 9 GPS data valid / invalid 0, 1, 2 Word 0 = invalid<br />

D + 10~11 Altitude 0 ~9999.9 Float Unit: meter<br />

D + 12~13 Latitude -90 ~ 90 Float Unit: ±dd.ddddd<br />

D + 14~15 Longitude -180 ~ 180 Float Unit: ±ddd.ddddd<br />

• When S is set as K1, sentence identifier $GPRMC is specified. D devices refer to:<br />

No. Content Range Format Note<br />

D + 0 Hour 0 ~ 23 Word<br />

D + 1 Minute 0 ~ 59 Word<br />

3-399

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!