SET_PCMCIA: Initialization of the archiving zone
Original instructions
Function description
The SET_PCMCIA function enables all or part of the user memory card's archiving zone to be initialized at the desired value.
The additional parameters EN and ENO can be configured.
Representation in FBD
Representation:
Representation in LD
Representation:
Representation in IL
Representation:
LD Slot_Number
SET_PCMCIA Address, Words_Number, Init_Value, Init_State
Representation in ST
Representation:
SET_PCMCIA(Slot_Number, Address, Words_Number, Init_Value, Init_State);
Description of the parameters
The following table describes the input parameters:
Parameter
Type
Comment
Slot_Number
PCMCIA card slot:
  • 0 = upper slot,
  • 1 = lower slot
Address
Address of the archiving zone from which initialization is performed.
Words_Number
Number of words to be initialized.
Init_Value
Initialization value.
The following table describes the output parameters:
Parameter
Type
Comment
Init_State
Code providing the result of the initialization command's execution:
  • 16#0000: initialization performed correctly,
  • 16#0201: no file zone in the memory card,
  • 16#0202: memory card error,
  • 16#0204: memory card write-protected,
  • 16#0241: negative address,
  • 16#0242: Address + Words_Number-1 is greater than the highest address of the memory card,
  • 16#0401: Words_Number ≤ 0,
  • 16#0402: Slot_Number  is different from 0 and 1,
  • 16#0501: unsupported service.