Download FB Library Start-up Guide
Transcript
2-8 RFID (ID Sensor) V600-H 2-4. Usage Example of FB Component FB “Write Data to Data Carrier” FB Name _V60x400_WriteData File Name _V60x400_WriteData10.cxf Functional Overview Writes data to a Data Carrier. Program Example When contact W0.00 is ON, ID sensor writes data “12 34 56 78” into carrier’s address 10. After normal write, contact W0.02 is set to ON by 1 cycle. If an error occurs by any reason, contact W0.03 is set to ON by 1 cycle. A200.11 W0.0 ↑ Unit No. &1 Head No. &1 Data Carrier write address &10 Bytes to process in Data Carrier &4 Write data storage area type P_DM Write data storage word address &1000 Communications designation &0 Processing designation &0 Cancel W0.15 W0.1 MOV #1234 D1000 MOV #5678 D1001 _V60x400_WriteData (BOOL) (BOOL) EN ENO (INT) (BOOL) UnitNo BUSY (INT) (BOOL) HeadNo OK (WORD) (BOOL) CarrierAddress NG (INT) (WORD) WriteBytes ErrorCode (WORD) DataAreaID (INT) DataAreaNo (INT) Communications (INT) ByteOrder (BOOL) Cancel Busy flag W0.0 Normal end W0.2 Error end W0.3 Error code